Avoid using immature coinbase UTXOs for dummy TXins

This commit is contained in:
Alexander Block 2019-01-21 06:08:31 +01:00
parent 4d25148c03
commit b970c20a96

View File

@ -451,7 +451,7 @@ class DIP3Test(BitcoinTestFramework):
dummy_txin = None
if with_dummy_input_output:
dummyaddress = self.nodes[0].getnewaddress()
unspent = self.nodes[0].listunspent(20)
unspent = self.nodes[0].listunspent(110)
for u in unspent:
if u['amount'] > Decimal(1):
dummy_txin = {'txid': u['txid'], 'vout': u['vout']}