test: give env more time to settle in signrawtransaction.py

This commit is contained in:
James Dorfman 2023-10-17 21:00:59 +00:00
parent 67bb197647
commit 550563e04b

View file

@ -42,6 +42,8 @@ from decimal import (
getcontext,
)
import time # ELEMENTS
class SignRawTransactionsTest(BitcoinTestFramework):
def set_test_params(self):
self.setup_clean_chain = True
@ -213,6 +215,8 @@ class SignRawTransactionsTest(BitcoinTestFramework):
self.generate(self.nodes[0], COINBASE_MATURITY + 1, sync_fun=self.no_op)
self.nodes[0].sendtoaddress(p2sh_p2wsh_address["address"], 49.999)
self.generate(self.nodes[0], 1, sync_fun=self.no_op)
# ElEMENTS: allow environment time to settle
time.sleep(15)
# Get the UTXO info from scantxoutset
unspent_output = self.nodes[1].scantxoutset('start', [p2sh_p2wsh_address['descriptor']])['unspents'][0]
spk = script_to_p2sh_p2wsh_script(p2sh_p2wsh_address['redeemScript']).hex()