mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 10:28:10 +01:00
Fix prefunded ITX.
This commit is contained in:
@@ -966,8 +966,11 @@ class DBMethods:
|
|||||||
query_data[cv_name] = cv
|
query_data[cv_name] = cv
|
||||||
query += ") "
|
query += ") "
|
||||||
else:
|
else:
|
||||||
query += f" AND {ck} = :{ck} "
|
if constraint_value is None:
|
||||||
query_data[ck] = constraint_value
|
query += f" AND {ck} IS NULL "
|
||||||
|
else:
|
||||||
|
query += f" AND {ck} = :{ck} "
|
||||||
|
query_data[ck] = constraint_value
|
||||||
|
|
||||||
for order_col, order_dir in order_by.items():
|
for order_col, order_dir in order_by.items():
|
||||||
if validColumnName(order_col) is False:
|
if validColumnName(order_col) is False:
|
||||||
|
|||||||
@@ -1137,12 +1137,10 @@ class Test(BaseTest):
|
|||||||
walletpath = os.path.join(
|
walletpath = os.path.join(
|
||||||
chain_client_settings.get("datadir", "none"), "wallets", wallet_name
|
chain_client_settings.get("datadir", "none"), "wallets", wallet_name
|
||||||
)
|
)
|
||||||
wallet_cache_bytes = os.path.getsize(walletpath)
|
|
||||||
logging.info(f"[rm] wallet_cache_bytes {wallet_cache_bytes}")
|
|
||||||
logging.info(f"[rm] walletpath {walletpath}")
|
|
||||||
shutil.copy(walletpath, walletpath + ".orig")
|
shutil.copy(walletpath, walletpath + ".orig")
|
||||||
|
|
||||||
# Failed to open wallet : basic_string::_M_replace_aux
|
# Failed to open wallet : basic_string::_M_replace_aux
|
||||||
|
# wallet_cache_bytes = os.path.getsize(walletpath)
|
||||||
# with open(walletpath, "wb") as fp:
|
# with open(walletpath, "wb") as fp:
|
||||||
# fp.write(os.urandom(wallet_cache_bytes))
|
# fp.write(os.urandom(wallet_cache_bytes))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user