mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
Bullet points for reactor and poolRoutine
This commit is contained in:
committed by
Ethan Buchman
parent
a30315276b
commit
940145b368
@@ -6,7 +6,21 @@ the blocks to disk and play blocks to the ABCI app.
|
||||
|
||||
## Block Reactor
|
||||
|
||||
* coordinates synching with other peers
|
||||
* coordinates the pool for synching
|
||||
* coordinates the store for persistence
|
||||
* coordinates the playing of blocks towards the app using a sm.BlockExecutor
|
||||
* handles switching between fastsync and consensus
|
||||
* it is a p2p.BaseReactor
|
||||
* starts the pool.Start() and its poolRoutine()
|
||||
* registers all the concrete types and interfaces for serialisation
|
||||
|
||||
### poolRoutine
|
||||
|
||||
* requests blocks from a specific peer based on the pool
|
||||
* periodically asks for status updates
|
||||
* tries to switch to consensus
|
||||
* tries to sync the app by taking downloaded blocks from the pool, gives them to the app and stores
|
||||
them on disk
|
||||
|
||||
## Block Pool
|
||||
|
||||
|
Reference in New Issue
Block a user