]> Untitled Git - bdk-cli/commit
fix(wallet): prevent wallet network changes and clarify mismatch errors
authorMuawiya Abubakar <muawiyaabk@gmail.com>
Wed, 18 Nov 2026 20:34:25 +0000 (21:34 +0100)
committerMuawiya Abubakar <muawiyaabk@gmail.com>
Mon, 23 Nov 2026 02:24:59 +0000 (03:24 +0100)
commitf9d16f4d12ec75ccd5c91cd38448e5294d208ee0
tree96ff3f1539cec0f5916ab194187d05d8656b5671
parent1c8026e36de05ca193532a640cca155f047793cc
fix(wallet): prevent wallet network changes and clarify mismatch errors

Running `wallet config --force` without the original `--network` saved
the default network (testnet) over the existing one. The config then no
longer matched the wallet database, and the wallet failed to load with
a generic error.

- Reject a `--force` that would change an existing wallet's network
- Clarify the wallet load error for a network mismatch

Fixes #359
CHANGELOG.md
src/error.rs
src/handlers/config.rs
src/persister.rs
tests/integration/init.rs