OSDN Git Service

Del useless status update (#156)
authoryahtoo <yahtoo.ma@gmail.com>
Tue, 11 Jun 2019 06:18:52 +0000 (14:18 +0800)
committerPaladz <yzhu101@uottawa.ca>
Tue, 11 Jun 2019 06:18:52 +0000 (14:18 +0800)
netsync/consensusmgr/block_fetcher.go

index dc42923..3c92b38 100644 (file)
@@ -89,8 +89,6 @@ func (f *blockFetcher) insert(msg *blockMsg) {
                return
        }
 
-       hash := msg.block.Hash()
-       f.peers.SetStatus(msg.peerID, msg.block.Height, &hash)
        proposeMsg, err := NewBlockProposeMsg(msg.block)
        if err != nil {
                logrus.WithFields(logrus.Fields{"module": logModule, "err": err}).Error("failed on create BlockProposeMsg")