core: use GetCommitteeAddress
to get committee address
This commit is contained in:
parent
5b205ffa7d
commit
ef7c0dbd78
1 changed files with 1 additions and 6 deletions
|
@ -1243,12 +1243,7 @@ func (bc *Blockchain) verifyTxAttributes(tx *transaction.Transaction) error {
|
|||
for i := range tx.Attributes {
|
||||
switch tx.Attributes[i].Type {
|
||||
case transaction.HighPriority:
|
||||
pubs := bc.contracts.NEO.GetCommitteeMembers()
|
||||
s, err := smartcontract.CreateMajorityMultiSigRedeemScript(pubs)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
h := hash.Hash160(s)
|
||||
h := bc.contracts.NEO.GetCommitteeAddress()
|
||||
for i := range tx.Signers {
|
||||
if tx.Signers[i].Account.Equals(h) {
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue