From b4605bc53a8a69097ddf9b861121b97a7388b208 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Sun, 5 Jul 2015 20:02:23 -0700 Subject: [PATCH] process ConsensusReactor messages during fast_sync --- consensus/reactor.go | 3 ++- scripts/unsafe_debug_net.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/consensus/reactor.go b/consensus/reactor.go index c5f0014be..695440261 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -133,9 +133,10 @@ func (conR *ConsensusReactor) RemovePeer(peer *p2p.Peer, reason interface{}) { } // Implements Reactor +// NOTE: We process these messages even when we're fast_syncing. func (conR *ConsensusReactor) Receive(chId byte, peer *p2p.Peer, msgBytes []byte) { log.Debug("Receive", "channel", chId, "peer", peer, "bytes", msgBytes) - if conR.sync || !conR.IsRunning() { + if !conR.IsRunning() { return } diff --git a/scripts/unsafe_debug_net.sh b/scripts/unsafe_debug_net.sh index be6baacb7..c8816d0d1 100755 --- a/scripts/unsafe_debug_net.sh +++ b/scripts/unsafe_debug_net.sh @@ -4,7 +4,7 @@ debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint unsafe_reset_priv_validator; rm -rf ~/.tendermint/data" debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make" debora run --bg --label tendermint -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint node" -echo "sleeping for 45 seconds" -sleep 45 +echo "sleeping for a minute" +sleep 60 debora download tendermint "logs/async$1" debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint"