input-output-hk / mantis

A Scala based client for Ethereum-like Blockchains.
Apache License 2.0
231 stars 75 forks source link

ETCM-1023: Block fetching and -building flow #1108

Open jvdp opened 3 years ago

jvdp commented 3 years ago

Implements a flow that construct blocks from messages from the PeerEventBus, and hooks it into RegularSync via a temporary block buffer data structure and flow (as proof of concept.)

[update 23/8]: Just tested this on Sagano and it regular-syncs up to the best block and then remains stuck there. So it's close.

jvdp commented 3 years ago

So after some discussion we've decided to abandon the PeerEventBus-based block stream and stick with the plans for the FetcherService method, but it's left in for now to test the better BranchBuffer during development.