use of tech.pegasys.teku.spec.datastructures.util.DepositUtil in project teku by ConsenSys.
the class DepositProviderTest method setup.
void setup(final int maxDeposits) {
when(state.getSlot()).thenReturn(UInt64.valueOf(1234));
SpecConfig specConfig = SpecConfigLoader.loadConfig("minimal", b -> b.maxDeposits(maxDeposits));
spec = TestSpecFactory.createPhase0(specConfig);
depositUtil = new DepositUtil(spec);
dataStructureUtil = new DataStructureUtil(spec);
depositProvider = new DepositProvider(new StubMetricsSystem(), recentChainData, eth1DataCache, spec);
depositMerkleTree = new OptimizedMerkleTree(spec.getGenesisSpecConfig().getDepositContractTreeDepth());
mockStateEth1DataVotes();
createDepositEvents(40);
randomEth1Data = dataStructureUtil.randomEth1Data();
}
Aggregations