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 := NewMessage(RootT, r)
|
||||||
m.EncodeBinary(w.BinWriter)
|
m.EncodeBinary(w.BinWriter)
|
||||||
ep := &payload.Extensible{
|
ep := &payload.Extensible{
|
||||||
|
Category: Category,
|
||||||
ValidBlockStart: r.Index,
|
ValidBlockStart: r.Index,
|
||||||
ValidBlockEnd: r.Index + transaction.MaxValidUntilBlockIncrement,
|
ValidBlockEnd: r.Index + transaction.MaxValidUntilBlockIncrement,
|
||||||
Sender: priv.GetScriptHash(),
|
Sender: priv.GetScriptHash(),
|
||||||
|
|
|
@ -68,6 +68,7 @@ func (s *service) signAndSend(r *state.MPTRoot) error {
|
||||||
return w.Err
|
return w.Err
|
||||||
}
|
}
|
||||||
e := &payload.Extensible{
|
e := &payload.Extensible{
|
||||||
|
Category: Category,
|
||||||
ValidBlockStart: r.Index,
|
ValidBlockStart: r.Index,
|
||||||
ValidBlockEnd: r.Index + transaction.MaxValidUntilBlockIncrement,
|
ValidBlockEnd: r.Index + transaction.MaxValidUntilBlockIncrement,
|
||||||
Sender: s.getAccount().PrivateKey().GetScriptHash(),
|
Sender: s.getAccount().PrivateKey().GetScriptHash(),
|
||||||
|
|
Loading…
Reference in a new issue