diff --git a/test/functional/abc-p2p-compactblocks.py b/test/functional/abc-p2p-compactblocks.py --- a/test/functional/abc-p2p-compactblocks.py +++ b/test/functional/abc-p2p-compactblocks.py @@ -18,7 +18,7 @@ from test_framework.blocktools import ( create_block, create_coinbase, - create_transaction, + create_tx_with_script, make_conform_to_ctor, ) from test_framework.cdefs import ONE_MEGABYTE @@ -110,7 +110,7 @@ # this is a little handier to use than the version in blocktools.py def create_tx(self, spend_tx, n, value, script=CScript([OP_TRUE])): - tx = create_transaction(spend_tx, n, b"", value, script) + tx = create_tx_with_script(spend_tx, n, b"", value, script) return tx def next_block(self, number, spend=None, script=CScript([OP_TRUE]), block_size=0, extra_txns=0): diff --git a/test/functional/abc-p2p-fullblocktest.py b/test/functional/abc-p2p-fullblocktest.py --- a/test/functional/abc-p2p-fullblocktest.py +++ b/test/functional/abc-p2p-fullblocktest.py @@ -18,7 +18,7 @@ from test_framework.blocktools import ( create_block, create_coinbase, - create_transaction, + create_tx_with_script, make_conform_to_ctor, ) from test_framework.cdefs import ( @@ -85,7 +85,7 @@ # this is a little handier to use than the version in blocktools.py def create_tx(self, spend, value, script=CScript([OP_TRUE])): - tx = create_transaction(spend.tx, spend.n, b"", value, script) + tx = create_tx_with_script(spend.tx, spend.n, b"", value, script) return tx def next_block(self, number, spend=None, script=CScript([OP_TRUE]), block_size=0, extra_sigops=0):