From dca637d2d0f1d6553841960882385feb8f92b6f5 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 16 Mar 2020 19:17:44 +0300 Subject: [PATCH] core: add owner hash to verified list for Register TX As it should be done. --- pkg/core/blockchain.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 2e9b9ce31..f4a4f4ab5 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -1942,6 +1942,9 @@ func (bc *Blockchain) GetScriptHashesForVerifying(t *transaction.Transaction) ([ case transaction.EnrollmentType: etx := t.Data.(*transaction.EnrollmentTX) hashes[etx.PublicKey.GetScriptHash()] = true + case transaction.RegisterType: + reg := t.Data.(*transaction.RegisterTX) + hashes[reg.Owner.GetScriptHash()] = true case transaction.StateType: stx := t.Data.(*transaction.StateTX) for _, desc := range stx.Descriptors {