From faf7e485e901d6c72db5d969b526fa148060a003 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 5 May 2021 10:10:38 +0200 Subject: Set regtest.BIP65Height = 111 to speed up tests --- test/functional/rpc_signrawtransaction.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/functional/rpc_signrawtransaction.py') diff --git a/test/functional/rpc_signrawtransaction.py b/test/functional/rpc_signrawtransaction.py index c18f5f98cc..e6fef7e838 100755 --- a/test/functional/rpc_signrawtransaction.py +++ b/test/functional/rpc_signrawtransaction.py @@ -5,7 +5,6 @@ """Test transaction signing using the signrawtransaction* RPCs.""" from test_framework.blocktools import ( - CLTV_HEIGHT, COINBASE_MATURITY, CSV_ACTIVATION_HEIGHT, ) @@ -310,11 +309,10 @@ class SignRawTransactionsTest(BitcoinTestFramework): getcontext().prec = 8 # Make sure CLTV is active - generate_to_height(self, self.nodes[0], CLTV_HEIGHT) assert self.nodes[0].getblockchaininfo()['softforks']['bip65']['active'] # Create a P2WSH script with CLTV - script = CScript([1000, OP_CHECKLOCKTIMEVERIFY, OP_DROP]) + script = CScript([100, OP_CHECKLOCKTIMEVERIFY, OP_DROP]) address = script_to_p2wsh(script) # Fund that address and make the spend -- cgit v1.2.3