stateroot: Extensible messages must have proper category

This commit is contained in:
Roman Khimov 2021-03-26 22:16:46 +03:00
parent 44c87a460c
commit 042aef452d
2 changed files with 2 additions and 0 deletions

View file

@ -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(),

View file

@ -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(),