Tendermint P2P Reactor Types

yzhanginwa

Yi Zhang

Posted on January 13, 2024

Tendermint P2P Reactor Types

By looking at the struct Node in File "node/node.go", we can see there are 5 kinds of reactors. Here I give them a quick summary.

Reactor Package Purpose
pex.Reactor /p2p/pex for exchanging peer addresses
bcReactor /blockchain for fast-syncing
mempl.Reactor /mempool for gossipping transactions
cs.Reactor /consensus for participating in the consensus
statesync.Reactor /statesync for hosting and restoring state sync snapshots
💖 💪 🙅 🚩
yzhanginwa
Yi Zhang

Posted on January 13, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related