core: add validator public key into the list of hashes to verify

That should be done for Enrollment transactions.
This commit is contained in:
Roman Khimov 2020-02-21 20:04:16 +03:00
parent 56f87cd44e
commit d5e6028c13

View file

@ -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 {