Merge pull request #1706 from nspcc-dev/consensus-compatibility
Consensus compatibility
This commit is contained in:
commit
07cabb1d00
2 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue