Merge pull request #3500 from nspcc-dev/optimize-ext-computations

This commit is contained in:
Roman Khimov 2024-07-16 15:32:07 +03:00 committed by GitHub
commit f60d5ee1b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1833,7 +1833,7 @@ func (bc *Blockchain) updateExtensibleWhitelist(height uint32) error {
return err return err
} }
newList = append(newList, hash.Hash160(script)) newList = append(newList, hash.Hash160(script))
bc.updateExtensibleList(&newList, bc.contracts.NEO.GetNextBlockValidatorsInternal(bc.dao)) bc.updateExtensibleList(&newList, nextVals)
if len(stateVals) > 0 { if len(stateVals) > 0 {
h, err := bc.contracts.Designate.GetLastDesignatedHash(bc.dao, noderoles.StateValidator) h, err := bc.contracts.Designate.GetLastDesignatedHash(bc.dao, noderoles.StateValidator)