use of tech.pegasys.teku.test.acceptance.dsl.BesuNode in project teku by ConsenSys.
the class AddValidatorsAcceptanceTest method shouldLoadAdditionalValidatorsWithoutRestart.
@Test
void shouldLoadAdditionalValidatorsWithoutRestart() throws Exception {
final String networkName = "less-swift";
final BesuNode eth1Node = createBesuNode();
eth1Node.start();
final ValidatorKeystores initialKeystores = createTekuDepositSender(networkName).sendValidatorDeposits(eth1Node, 2);
final ValidatorKeystores additionalKeystores = createTekuDepositSender(networkName).sendValidatorDeposits(eth1Node, 2);
final TekuNode node = createTekuNode(config -> config.withNetwork(networkName).withDepositsFrom(eth1Node).withValidatorKeystores(initialKeystores));
node.start();
node.waitForOwnedValidatorCount(2);
node.waitForGenesis();
node.addValidators(additionalKeystores);
node.waitForOwnedValidatorCount(4);
// If the added validators perform their duties properly, the network will finalize.
node.waitForNewFinalization();
// Check loading new validators a second time still works and that they don't have to be active
final ValidatorKeystores evenMoreKeystores = createTekuDepositSender(networkName).sendValidatorDeposits(eth1Node, 1);
node.addValidators(evenMoreKeystores);
node.waitForOwnedValidatorCount(5);
}
use of tech.pegasys.teku.test.acceptance.dsl.BesuNode in project teku by ConsenSys.
the class StartupAcceptanceTest method shouldStartChainFromDepositContract.
@Test
public void shouldStartChainFromDepositContract() throws Exception {
final BesuNode eth1Node = createBesuNode();
eth1Node.start();
final TekuNode tekuNode = createTekuNode(config -> config.withDepositsFrom(eth1Node));
tekuNode.start();
createTekuDepositSender(Config.DEFAULT_NETWORK_NAME).sendValidatorDeposits(eth1Node, 4);
tekuNode.waitForGenesis();
}
Aggregations