Set expect_seed after creation.

BCH must be reseeded manually as sethdseed is disabled during IBD.
This commit is contained in:
tecnovert
2025-03-31 00:12:51 +02:00
parent a0c31fb87d
commit 9c252323be
2 changed files with 7 additions and 1 deletions

View File

@@ -2665,7 +2665,8 @@ class BasicSwap(BaseApp):
self.log.warning(msg)
return False
expect_seedid = self.getStringKV("main_wallet_seedid_" + ci.coin_name().lower())
seed_key: str = "main_wallet_seedid_" + ci.coin_name().lower()
expect_seedid: str = self.getStringKV(seed_key)
if expect_seedid is None:
self.log.warning(
f"Can't find expected wallet seed id for coin {ci.coin_name()}."
@@ -2677,6 +2678,7 @@ class BasicSwap(BaseApp):
)
root_key = self.getWalletKey(c, 1)
self.storeSeedIDForCoin(root_key, c)
expect_seedid: str = self.getStringKV(seed_key)
else:
self.log.warning("Node is locked.")
return False