use of tech.pegasys.teku.test.acceptance.dsl.TekuDepositSender in project teku by ConsenSys.
the class GenesisStateAcceptanceTest method shouldCreateGenesisFromPartialDeposits.
@Test
public void shouldCreateGenesisFromPartialDeposits() throws Exception {
final BesuNode eth1Node = createBesuNode();
eth1Node.start();
int numberOfValidators = 4;
final TekuDepositSender depositSender = createTekuDepositSender(Config.DEFAULT_NETWORK_NAME);
final List<ValidatorKeys> validatorKeys = depositSender.generateValidatorKeys(numberOfValidators);
depositSender.sendValidatorDeposits(eth1Node, validatorKeys, depositSender.getMinDepositAmount());
depositSender.sendValidatorDeposits(eth1Node, validatorKeys, depositSender.getMaxEffectiveBalance().minus(depositSender.getMinDepositAmount()));
final TekuNode teku = createTekuNode(config -> config.withDepositsFrom(eth1Node));
teku.start();
teku.waitForGenesis();
teku.waitForValidators(numberOfValidators);
}
Aggregations