mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
stateroot: Extensible messages must have proper category
This commit is contained in:
parent
44c87a460c
commit
042aef452d
2 changed files with 2 additions and 0 deletions
|
@ -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(),
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue