diff --git a/test/functional/feature_csv_activation.py b/test/functional/feature_csv_activation.py --- a/test/functional/feature_csv_activation.py +++ b/test/functional/feature_csv_activation.py @@ -58,6 +58,7 @@ OP_TRUE, ) from test_framework.test_framework import ComparisonTestFramework +from test_framework.txtools import pad_tx from test_framework.util import assert_equal base_relative_locktime = 10 @@ -142,6 +143,7 @@ spendtx = self.create_transaction( node, prev_tx.hash, self.nodeaddress, (prev_tx.vout[0].nValue - 1000) / COIN) spendtx.nVersion = prev_tx.nVersion + pad_tx(spendtx) spendtx.rehash() return spendtx diff --git a/test/functional/test_framework/blocktools.py b/test/functional/test_framework/blocktools.py --- a/test/functional/test_framework/blocktools.py +++ b/test/functional/test_framework/blocktools.py @@ -48,7 +48,6 @@ def make_conform_to_ctor(block): for tx in block.vtx: - pad_tx(tx) tx.rehash() block.vtx = [block.vtx[0]] + \ sorted(block.vtx[1:], key=lambda tx: tx.get_id())