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 {
|
for i := range tx.Attributes {
|
||||||
switch tx.Attributes[i].Type {
|
switch tx.Attributes[i].Type {
|
||||||
case transaction.HighPriority:
|
case transaction.HighPriority:
|
||||||
pubs := bc.contracts.NEO.GetCommitteeMembers()
|
h := bc.contracts.NEO.GetCommitteeAddress()
|
||||||
s, err := smartcontract.CreateMajorityMultiSigRedeemScript(pubs)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
h := hash.Hash160(s)
|
|
||||||
for i := range tx.Signers {
|
for i := range tx.Signers {
|
||||||
if tx.Signers[i].Account.Equals(h) {
|
if tx.Signers[i].Account.Equals(h) {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue