Fix: Extended private key for electrum.

This commit is contained in:
gerlofvanek
2026-04-27 18:43:31 +02:00
parent fe0de84054
commit a3e6d0cf17
3 changed files with 25 additions and 1 deletions
+6 -1
View File
@@ -2106,7 +2106,12 @@ def initialise_wallets(
continue
try:
ci = swap_client.ci(c)
if hasattr(ci, "canExportToElectrum") and ci.canExportToElectrum():
coin_settings = settings["chainclients"].get(coin_name, {})
is_electrum = coin_settings.get("connection_type") == "electrum"
can_export = (
hasattr(ci, "canExportToElectrum") and ci.canExportToElectrum()
)
if can_export or (is_electrum and hasattr(ci, "getAccountKey")):
seed_key = swap_client.getWalletKey(c, 1)
account_key = ci.getAccountKey(seed_key, zprv_prefix)
extended_keys[getCoinName(c)] = account_key