core: add validator public key into the list of hashes to verify
That should be done for Enrollment transactions.
This commit is contained in:
parent
56f87cd44e
commit
d5e6028c13
1 changed files with 4 additions and 0 deletions
|
@ -1547,6 +1547,10 @@ func (bc *Blockchain) GetScriptHashesForVerifying(t *transaction.Transaction) ([
|
|||
}
|
||||
}
|
||||
}
|
||||
if t.Type == transaction.EnrollmentType {
|
||||
etx := t.Data.(*transaction.EnrollmentTX)
|
||||
hashes[etx.PublicKey.GetScriptHash()] = true
|
||||
}
|
||||
// convert hashes to []util.Uint160
|
||||
hashesResult := make([]util.Uint160, 0, len(hashes))
|
||||
for h := range hashes {
|
||||
|
|
Loading…
Reference in a new issue