diff --git a/pkg/services/stateroot/signature.go b/pkg/services/stateroot/signature.go index a180c3474..3ebbcbeb2 100644 --- a/pkg/services/stateroot/signature.go +++ b/pkg/services/stateroot/signature.go @@ -77,12 +77,17 @@ func (r *incompleteRoot) finalize(stateValidators keys.PublicKeys) (*state.MPTRo return nil, false } + verif, err := smartcontract.CreateDefaultMultiSigRedeemScript(stateValidators) + if err != nil { + return nil, false + } w := io.NewBufBinWriter() for i := range sigs { emit.Bytes(w.BinWriter, sigs[i]) } r.root.Witness = []transaction.Witness{{ - InvocationScript: w.Bytes(), + InvocationScript: w.Bytes(), + VerificationScript: verif, }} return r.root, true }