From ef7c0dbd788131d48366866b50d4730277cca780 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 25 Sep 2020 17:01:58 +0300 Subject: [PATCH] core: use `GetCommitteeAddress` to get committee address --- pkg/core/blockchain.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 16fc98460..5465a9b94 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -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