DEV Community

Yi Zhang
Yi Zhang

Posted on

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

Top comments (0)