mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
test: give env more time to settle in signrawtransaction.py
This commit is contained in:
parent
67bb197647
commit
550563e04b
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue