X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=netsync%2Fconsensusmgr%2Fhandle.go;fp=netsync%2Fconsensusmgr%2Fhandle.go;h=702df7209652681e342d3be003a3a30fce1b0a41;hp=9c8642e4a54932698a1180aaad4c984acde38272;hb=32605ab49e746065f4b5a68301ce080d1576c6ef;hpb=1ffbb7fc93255972527f240c7ee936a9cf60c4ad diff --git a/netsync/consensusmgr/handle.go b/netsync/consensusmgr/handle.go index 9c8642e4..702df720 100644 --- a/netsync/consensusmgr/handle.go +++ b/netsync/consensusmgr/handle.go @@ -162,16 +162,10 @@ func (m *Manager) blockSignatureMsgBroadcastLoop() { continue } - blockHeader, err := m.chain.GetHeaderByHash(&ev.BlockHash) - if err != nil { - logrus.WithFields(logrus.Fields{"module": logModule, "err": err}).Error("failed on get header by hash from chain.") - return - } - - blockSignatureMsg := NewBroadcastMsg(NewBlockSignatureMsg(ev.BlockHash, blockHeader.Height, ev.Signature, ev.XPub), consensusChannel) + blockSignatureMsg := NewBroadcastMsg(NewBlockSignatureMsg(ev.BlockHash, ev.Signature, ev.XPub), consensusChannel) if err := m.peers.BroadcastMsg(blockSignatureMsg); err != nil { logrus.WithFields(logrus.Fields{"module": logModule, "err": err}).Error("failed on broadcast BlockSignBroadcastMsg.") - return + continue } case <-m.quit: