Fix prefunded ITX.

This commit is contained in:
tecnovert
2025-05-11 13:10:54 +02:00
parent 3ea7a219d1
commit 2a8ac051fc
2 changed files with 6 additions and 5 deletions

View File

@@ -965,6 +965,9 @@ class DBMethods:
query += ":" + cv_name
query_data[cv_name] = cv
query += ") "
else:
if constraint_value is None:
query += f" AND {ck} IS NULL "
else:
query += f" AND {ck} = :{ck} "
query_data[ck] = constraint_value

View File

@@ -1137,12 +1137,10 @@ class Test(BaseTest):
walletpath = os.path.join(
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")
# Failed to open wallet : basic_string::_M_replace_aux
# wallet_cache_bytes = os.path.getsize(walletpath)
# with open(walletpath, "wb") as fp:
# fp.write(os.urandom(wallet_cache_bytes))