Skip to content

Commit

Permalink
Allow deprecation warning from legacy wallet creation
Browse files Browse the repository at this point in the history
Added in bitcoin/bitcoin#24505

    "Wallet created successfully. The legacy wallet type is being
    deprecated and support for creating and opening legacy wallets
    will be removed in the future."
  • Loading branch information
bitcoinhodler committed Oct 27, 2022
1 parent 4e9f2b1 commit 5406c9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glacierscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def create_default_wallet():
found = any(w["name"] == "" for w in all_wallets["wallets"])
cmd = ["loadwallet", ""] if found else ["-named", "createwallet", "wallet_name=", "descriptors=false"]
loaded_wallet = bitcoin_cli.json(*cmd)
if loaded_wallet["warning"]:
if loaded_wallet["warning"] \
and not loaded_wallet["warning"].startswith("Wallet created successfully"):
raise Exception("problem running {} on default wallet".format(cmd)) # pragma: no cover


Expand Down

0 comments on commit 5406c9f

Please sign in to comment.