mirror of
https://github.com/basicswap/basicswap.git
synced 2026-04-08 18:37:23 +02:00
Electrum connection stability, swap fixes / UX improvements + Various fixes.
This commit is contained in:
@@ -1489,7 +1489,11 @@ class Test(BaseTest):
|
||||
v = ci.getNewRandomKey()
|
||||
s = ci.getNewRandomKey()
|
||||
S = ci.getPubkey(s)
|
||||
lock_tx_b_txid = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
result = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
if isinstance(result, tuple):
|
||||
lock_tx_b_txid, lock_tx_b_vout = result
|
||||
else:
|
||||
lock_tx_b_txid = result
|
||||
test_delay_event.wait(1)
|
||||
|
||||
addr_out = ci.getNewAddress(True)
|
||||
|
||||
@@ -412,7 +412,11 @@ class Test(TestFunctions):
|
||||
v = ci.getNewRandomKey()
|
||||
s = ci.getNewRandomKey()
|
||||
S = ci.getPubkey(s)
|
||||
lock_tx_b_txid = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
result = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
if isinstance(result, tuple):
|
||||
lock_tx_b_txid, lock_tx_b_vout = result
|
||||
else:
|
||||
lock_tx_b_txid = result
|
||||
test_delay_event.wait(1)
|
||||
|
||||
addr_out = ci.getNewAddress(False)
|
||||
|
||||
@@ -1579,7 +1579,11 @@ class BasicSwapTest(TestFunctions):
|
||||
v = ci.getNewRandomKey()
|
||||
s = ci.getNewRandomKey()
|
||||
S = ci.getPubkey(s)
|
||||
lock_tx_b_txid = ci.publishBLockTx(v, S, amount, self.test_fee_rate)
|
||||
result = ci.publishBLockTx(v, S, amount, self.test_fee_rate)
|
||||
if isinstance(result, tuple):
|
||||
lock_tx_b_txid, lock_tx_b_vout = result
|
||||
else:
|
||||
lock_tx_b_txid = result
|
||||
|
||||
addr_out = ci.getNewAddress(True)
|
||||
lock_tx_b_spend_txid = ci.spendBLockTx(
|
||||
|
||||
@@ -1218,7 +1218,11 @@ class Test(BaseTest):
|
||||
v = ci.getNewRandomKey()
|
||||
s = ci.getNewRandomKey()
|
||||
S = ci.getPubkey(s)
|
||||
lock_tx_b_txid = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
result = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
if isinstance(result, tuple):
|
||||
lock_tx_b_txid, lock_tx_b_vout = result
|
||||
else:
|
||||
lock_tx_b_txid = result
|
||||
|
||||
addr_out = ci.getNewAddress(True)
|
||||
lock_tx_b_spend_txid = ci.spendBLockTx(
|
||||
@@ -1247,7 +1251,11 @@ class Test(BaseTest):
|
||||
v = ci.getNewRandomKey()
|
||||
s = ci.getNewRandomKey()
|
||||
S = ci.getPubkey(s)
|
||||
lock_tx_b_txid = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
result = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
if isinstance(result, tuple):
|
||||
lock_tx_b_txid, lock_tx_b_vout = result
|
||||
else:
|
||||
lock_tx_b_txid = result
|
||||
|
||||
addr_out = ci.getNewAddress(True)
|
||||
for i in range(20):
|
||||
@@ -2306,7 +2314,11 @@ class Test(BaseTest):
|
||||
v = ci.getNewRandomKey()
|
||||
s = ci.getNewRandomKey()
|
||||
S = ci.getPubkey(s)
|
||||
lock_tx_b_txid = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
result = ci.publishBLockTx(v, S, amount, fee_rate)
|
||||
if isinstance(result, tuple):
|
||||
lock_tx_b_txid, lock_tx_b_vout = result
|
||||
else:
|
||||
lock_tx_b_txid = result
|
||||
|
||||
addr_out = ci.getNewStealthAddress()
|
||||
lock_tx_b_spend_txid = None
|
||||
|
||||
Reference in New Issue
Block a user