Skip to content

Commit 550563e

Browse files
committed
test: give env more time to settle in signrawtransaction.py
1 parent 67bb197 commit 550563e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/rpc_signrawtransaction.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
getcontext,
4343
)
4444

45+
import time # ELEMENTS
46+
4547
class SignRawTransactionsTest(BitcoinTestFramework):
4648
def set_test_params(self):
4749
self.setup_clean_chain = True
@@ -213,6 +215,8 @@ def witness_script_test(self):
213215
self.generate(self.nodes[0], COINBASE_MATURITY + 1, sync_fun=self.no_op)
214216
self.nodes[0].sendtoaddress(p2sh_p2wsh_address["address"], 49.999)
215217
self.generate(self.nodes[0], 1, sync_fun=self.no_op)
218+
# ElEMENTS: allow environment time to settle
219+
time.sleep(15)
216220
# Get the UTXO info from scantxoutset
217221
unspent_output = self.nodes[1].scantxoutset('start', [p2sh_p2wsh_address['descriptor']])['unspents'][0]
218222
spk = script_to_p2sh_p2wsh_script(p2sh_p2wsh_address['redeemScript']).hex()

0 commit comments

Comments
 (0)