@Test void shouldDelegateOnEth1BlockToEth1DataCache() { final Bytes32 blockHash = dataStructureUtil.randomBytes32(); final UInt64 blockTimestamp = dataStructureUtil.randomUInt64(); depositProvider.onEth1Block(blockHash, blockTimestamp); verify(eth1DataCache).onEth1Block(blockHash, blockTimestamp); }
@Override public void onEth1Block(final Bytes32 blockHash, final UInt64 blockTimestamp) { eth1DataCache.onEth1Block(blockHash, blockTimestamp); }
DepositProvider implements Eth1EventsChannel, FinalizedCheckpointChannel { @Override public void onEth1Block(final Bytes32 blockHash, final UInt64 blockTimestamp) { eth1DataCache.onEth1Block(blockHash, blockTimestamp); } }
DepositProvider implements Eth1EventsChannel, FinalizedCheckpointChannel { @Override public void onEth1Block(final Bytes32 blockHash, final UInt64 blockTimestamp) { eth1DataCache.onEth1Block(blockHash, blockTimestamp); } DepositProvider(RecentChainData recentChainData, final Eth1DataCache eth1DataCache); }
DepositProvider implements Eth1EventsChannel, FinalizedCheckpointChannel { @Override public void onEth1Block(final Bytes32 blockHash, final UInt64 blockTimestamp) { eth1DataCache.onEth1Block(blockHash, blockTimestamp); } DepositProvider(RecentChainData recentChainData, final Eth1DataCache eth1DataCache); @Override synchronized void onDepositsFromBlock(DepositsFromBlockEvent event); @Override void onNewFinalizedCheckpoint(final Checkpoint checkpoint); @Override void onEth1Block(final Bytes32 blockHash, final UInt64 blockTimestamp); @Override void onMinGenesisTimeBlock(MinGenesisTimeBlockEvent event); synchronized SSZList<Deposit> getDeposits(BeaconState state, Eth1Data eth1Data); synchronized int getDepositMapSize(); }
DepositProvider implements Eth1EventsChannel, FinalizedCheckpointChannel { @Override public void onEth1Block(final Bytes32 blockHash, final UInt64 blockTimestamp) { eth1DataCache.onEth1Block(blockHash, blockTimestamp); } DepositProvider(RecentChainData recentChainData, final Eth1DataCache eth1DataCache); @Override synchronized void onDepositsFromBlock(DepositsFromBlockEvent event); @Override void onNewFinalizedCheckpoint(final Checkpoint checkpoint); @Override void onEth1Block(final Bytes32 blockHash, final UInt64 blockTimestamp); @Override void onMinGenesisTimeBlock(MinGenesisTimeBlockEvent event); synchronized SSZList<Deposit> getDeposits(BeaconState state, Eth1Data eth1Data); synchronized int getDepositMapSize();  }