harmony-dev / beacon-chain-java

Java implementation of Ethereum 2.0 Beacon Chain
Apache License 2.0
34 stars 9 forks source link

Implement block pool #202

Open mkalinin opened 5 years ago

mkalinin commented 5 years ago

Description

Block pool accumulates blocks received via gossip channel, verifies them and inserts into beacon chain. If received block is a part of unknown chain segment it needs to be downloaded via Req/Resp. Blocks should be purged/discarded if its chain can't be identified or slot falls behind recent finalized slot. Blocks coming from future slots should be held until that slot is emitted.