Tests: move get_bip9_status to util.py

This commit is contained in:
Suhas Daftuar
2016-04-07 14:54:50 -04:00
parent e4ba9f6b04
commit 5cb1d8a207
2 changed files with 13 additions and 13 deletions

View File

@@ -545,3 +545,10 @@ def create_lots_of_big_transactions(node, txouts, utxos, fee):
txid = node.sendrawtransaction(signresult["hex"], True)
txids.append(txid)
return txids
def get_bip9_status(node, key):
info = node.getblockchaininfo()
for row in info['bip9_softforks']:
if row['id'] == key:
return row
raise IndexError ('key:"%s" not found' % key)