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:e4ba9f6b045cb1d8a207da5fdbb3a2
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
cada7c2418
commit
46898e7e94
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user