cons reactor works

This commit is contained in:
William Banfield
2022-10-19 21:52:08 -04:00
parent 396e3d80ac
commit d2fe1d3b36
2 changed files with 4 additions and 0 deletions

View File

@@ -625,4 +625,7 @@ func (br *ByzantineReactor) RemovePeer(peer p2p.Peer, reason interface{}) {
func (br *ByzantineReactor) Receive(chID byte, peer p2p.Peer, msgBytes []byte) {
br.reactor.Receive(chID, peer, msgBytes)
}
func (br *ByzantineReactor) NewReceive(e p2p.Envelope) {
br.reactor.NewReceive(e)
}
func (br *ByzantineReactor) InitPeer(peer p2p.Peer) p2p.Peer { return peer }

View File

@@ -228,6 +228,7 @@ func (conR *Reactor) RemovePeer(peer p2p.Peer, reason interface{}) {
// proposals, block parts, and votes are ordered by the receiveRoutine
// NOTE: blocks on consensus state for proposals, block parts, and votes
func (conR *Reactor) Receive(chID byte, src p2p.Peer, msgBytes []byte) {
return //disable and rely on the NewReceive
if !conR.IsRunning() {
conR.Logger.Debug("Receive", "src", src, "chId", chID, "bytes", msgBytes)
return