diff --git a/pkg/consensus/consensus.go b/pkg/consensus/consensus.go index 3e31d6ecf..1af47538d 100644 --- a/pkg/consensus/consensus.go +++ b/pkg/consensus/consensus.go @@ -41,7 +41,7 @@ const defaultTimePerBlock = 15 * time.Second const nsInMs = 1000000 // Category is message category for extensible payloads. -const Category = "Consensus" +const Category = "dBFT" // Service represents consensus instance. type Service interface { diff --git a/pkg/network/payload/extensible.go b/pkg/network/payload/extensible.go index 7df9ffd33..838d519ac 100644 --- a/pkg/network/payload/extensible.go +++ b/pkg/network/payload/extensible.go @@ -121,6 +121,7 @@ func (e *Extensible) updateHashes(b []byte) { // updateSignedPart updates serialized message if needed. func (e *Extensible) updateSignedPart() { w := io.NewBufBinWriter() + w.WriteU32LE(uint32(e.Network)) e.encodeBinaryUnsigned(w.BinWriter) e.signedpart = w.Bytes() }