Skip to content

Commit

Permalink
Fix qtum_evm_globals.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil committed Oct 30, 2024
1 parent a41bd04 commit 2ca33e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/qtum_evm_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def verify_evm_globals_test(self, use_staking=False):
coinstake_pubkey = hex_str_to_bytes(coinbase_tx['vout'][authorTxIndexAndVoutIndex]['scriptPubKey']['asm'].split(' ')[0])
coinbase_pkh = bytes_to_hex_str(hash160(coinstake_pubkey))
else:
coinbase_address = coinbase_tx['vout'][authorTxIndexAndVoutIndex]['scriptPubKey']['addresses'][0]
coinbase_address = coinbase_tx['vout'][authorTxIndexAndVoutIndex]['scriptPubKey']['address']
coinbase_pkh = p2pkh_to_hex_hash(coinbase_address)

#for i in range(self.node.getblockcount(), 0, -1):
Expand Down Expand Up @@ -216,7 +216,7 @@ def run_test(self):
self.contract_address = self.node.createcontract(bytecode)['address']
print('verify globals in PoW blocks')

self.verify_evm_globals_test(use_staking=True)
self.verify_evm_globals_test(use_staking=False)
self.sync_all()

generatesynchronized(self.node, 257, None, self.nodes)
Expand Down

0 comments on commit 2ca33e4

Please sign in to comment.