mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-06 03:36:18 +00:00
Wallet/Migration: If loading the new watchonly or solvables wallet fails, log the correct wallet name in error message
Github-Pull: #34370 Rebased-From: 60f529027c6eacbdc298fab50192f8c60d7082a1
This commit is contained in:
parent
29abedc97b
commit
619480bd78
@ -4474,7 +4474,7 @@ util::Result<MigrationResult> MigrateLegacyToDescriptor(const std::string& walle
|
||||
to_reload = LoadWallet(context, name, /*load_on_start=*/std::nullopt, options, status, error, warnings);
|
||||
if (!to_reload) {
|
||||
LogError("Failed to load wallet '%s' after migration. Rolling back migration to preserve consistency. "
|
||||
"Error cause: %s\n", wallet_name, error.original);
|
||||
"Error cause: %s\n", name, error.original);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user