mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
Merge pull request #766 from nspcc-dev/fix-register-tx-verification
core: add owner hash to verified list for Register TX
This commit is contained in:
commit
a9e5cdd6cc
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue