consensus: add network magic to hash data
Consensus payload's hash now depends on the network node is operating in.
This commit is contained in:
parent
270377637a
commit
857ced8230
4 changed files with 37 additions and 13 deletions
|
@ -144,7 +144,7 @@ func (m *Message) decodePayload() error {
|
|||
case CMDBlock:
|
||||
p = block.New(m.Network)
|
||||
case CMDConsensus:
|
||||
p = &consensus.Payload{}
|
||||
p = consensus.NewPayload(m.Network)
|
||||
case CMDGetBlocks:
|
||||
fallthrough
|
||||
case CMDGetHeaders:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue