diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2016-04-07 14:33:08 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-04-08 14:22:04 +0200 |
commit | 46898e7e942b4e04021aac3724eb4f2ec4cf567b (patch) | |
tree | 74dea6d450fd7d62f1633c84b879f0f7affc50c9 /qa/rpc-tests/test_framework/util.py | |
parent | cada7c2418ef159ee932957314588956ec4d7eb1 (diff) | |
download | bitcoin-46898e7e942b4e04021aac3724eb4f2ec4cf567b.tar.xz |
Version 2 transactions remain non-standard until CSV activates
Before activation, such transactions might not be mined, so don't
allow into the mempool.
- Tests: move get_bip9_status to util.py
- Test relay of version 2 transactions
Github-Pull: #7835
Rebased-From: e4ba9f6b0402cf7a2ad0d74f617c434a26c6e124 5cb1d8a2071d05beb9907a423178895fd8a5c359 da5fdbb3a2778523cce70d635c1aa2b31a693bc6
Diffstat (limited to 'qa/rpc-tests/test_framework/util.py')
-rw-r--r-- | qa/rpc-tests/test_framework/util.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qa/rpc-tests/test_framework/util.py b/qa/rpc-tests/test_framework/util.py index d8bb63dbbb..c71ca0d9fb 100644 --- a/qa/rpc-tests/test_framework/util.py +++ b/qa/rpc-tests/test_framework/util.py @@ -490,3 +490,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) |