use of tech.pegasys.teku.test.acceptance.dsl.TekuNode.Config in project teku by ConsenSys.
the class SyncAcceptanceTest method shouldSyncToNodeWithGreaterFinalizedEpoch.
@Test
public void shouldSyncToNodeWithGreaterFinalizedEpoch() throws Exception {
final TekuNode primaryNode = createTekuNode(Config::withRealNetwork);
primaryNode.start();
UInt64 genesisTime = primaryNode.getGenesisTime();
final TekuNode lateJoiningNode = createTekuNode(configureLateJoiningNode(primaryNode, genesisTime.intValue()));
primaryNode.waitForNewFinalization();
lateJoiningNode.start();
lateJoiningNode.waitForGenesis();
lateJoiningNode.waitUntilInSyncWith(primaryNode);
}