From 042aef452dec501c74fd08a03d9f24ac4ab9cffe Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 26 Mar 2021 22:16:46 +0300 Subject: [PATCH] stateroot: Extensible messages must have proper category --- pkg/services/stateroot/network.go | 1 + pkg/services/stateroot/validators.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/services/stateroot/network.go b/pkg/services/stateroot/network.go index 21174c3a5..af8e6fceb 100644 --- a/pkg/services/stateroot/network.go +++ b/pkg/services/stateroot/network.go @@ -81,6 +81,7 @@ func (s *service) sendValidatedRoot(r *state.MPTRoot, priv *keys.PrivateKey) { m := NewMessage(RootT, r) m.EncodeBinary(w.BinWriter) ep := &payload.Extensible{ + Category: Category, ValidBlockStart: r.Index, ValidBlockEnd: r.Index + transaction.MaxValidUntilBlockIncrement, Sender: priv.GetScriptHash(), diff --git a/pkg/services/stateroot/validators.go b/pkg/services/stateroot/validators.go index fbd9a88d2..3a56041c4 100644 --- a/pkg/services/stateroot/validators.go +++ b/pkg/services/stateroot/validators.go @@ -68,6 +68,7 @@ func (s *service) signAndSend(r *state.MPTRoot) error { return w.Err } e := &payload.Extensible{ + Category: Category, ValidBlockStart: r.Index, ValidBlockEnd: r.Index + transaction.MaxValidUntilBlockIncrement, Sender: s.getAccount().PrivateKey().GetScriptHash(),