mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-05 03:58:23 +00:00
network: raise MPTRoot broadcast priority
It can affect consensus process.
This commit is contained in:
parent
ab7a69bfec
commit
92f8cee6cd
1 changed files with 4 additions and 1 deletions
|
@ -852,7 +852,10 @@ func (s *Server) handleNewPayload(item cache.Hashable) {
|
|||
case *state.MPTRoot:
|
||||
s.stateCache.Add(p)
|
||||
msg := s.MkMsg(CMDStateRoot, p)
|
||||
s.broadcastMessage(msg)
|
||||
// Stalling on broadcast here would mean delaying commit which
|
||||
// is not good for consensus. MPTRoot is being generated once
|
||||
// per block, so it shouldn't be a problem.
|
||||
s.broadcastHPMessage(msg)
|
||||
default:
|
||||
s.log.Warn("unknown item type", zap.String("type", fmt.Sprintf("%T", p)))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue