send a full diff or a full commit that I can push as-is, I may consider it
I actually meant just the create_block change here, which can now choose between two provided height values:
diff --git a/test/functional/test_framework/blocktools.py b/test/functional/test_framework/blocktools.py
--- a/test/functional/test_framework/blocktools.py (revision 22ca336e09824c347e89348166d3208ac04d3693)
+++ b/test/functional/test_framework/blocktools.py (date 1776336206046)
@@ -278,6 +278,14 @@
return node.sendrawtransaction(tx_to_witness)
class TestFrameworkBlockTools(unittest.TestCase):
+ def test_create_block_prefers_explicit_height(self):
+ block = create_block(
+ hashprev=1,
+ tmpl={"height": 100, "curtime": 2},
+ height=200,
+ )
+ assert_equal(CScriptNum.decode(block.vtx[0].vin[0].scriptSig), 200)
+
def test_create_coinbase(self):
height = 20
coinbase_tx = create_coinbase(height=height)