aboutsummaryrefslogtreecommitdiff
path: root/test/functional/mempool_spend_coinbase.py
diff options
context:
space:
mode:
authorConor Scott <conor.r.scott.88@gmail.com>2018-07-30 10:03:20 +0200
committerConor Scott <conor.r.scott.88@gmail.com>2018-08-09 12:58:35 +0200
commit157651855f91c3c093c27290a349a231ac5ba740 (patch)
treea61b17615865bcfee8a9f42547d98f9494f42674 /test/functional/mempool_spend_coinbase.py
parentdf9f71274645a917e2578c52a1c59745bce8112d (diff)
downloadbitcoin-157651855f91c3c093c27290a349a231ac5ba740.tar.xz
[Tests] Rename create_tx and move to blocktools.py
Diffstat (limited to 'test/functional/mempool_spend_coinbase.py')
-rwxr-xr-xtest/functional/mempool_spend_coinbase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/mempool_spend_coinbase.py b/test/functional/mempool_spend_coinbase.py
index fb3c01a9de..74a3634a6c 100755
--- a/test/functional/mempool_spend_coinbase.py
+++ b/test/functional/mempool_spend_coinbase.py
@@ -13,6 +13,7 @@ but less mature coinbase spends are NOT.
"""
from test_framework.test_framework import BitcoinTestFramework
+from test_framework.blocktools import create_raw_transaction
from test_framework.util import *
# Create one-input, one-output, no-fee transaction:
@@ -31,7 +32,7 @@ class MempoolSpendCoinbaseTest(BitcoinTestFramework):
# is too immature to spend.
b = [ self.nodes[0].getblockhash(n) for n in range(101, 103) ]
coinbase_txids = [ self.nodes[0].getblock(h)['tx'][0] for h in b ]
- spends_raw = [ create_tx(self.nodes[0], txid, node0_address, 49.99) for txid in coinbase_txids ]
+ spends_raw = [ create_raw_transaction(self.nodes[0], txid, node0_address, 49.99) for txid in coinbase_txids ]
spend_101_id = self.nodes[0].sendrawtransaction(spends_raw[0])