Browse Source

process ConsensusReactor messages during fast_sync

pull/102/head
Jae Kwon 10 years ago
parent
commit
b4605bc53a
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      consensus/reactor.go
  2. +2
    -2
      scripts/unsafe_debug_net.sh

+ 2
- 1
consensus/reactor.go View File

@ -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
}


+ 2
- 2
scripts/unsafe_debug_net.sh View File

@ -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"

Loading…
Cancel
Save