Skip to content

Commit

Permalink
fix: extra logs to distinct WriteHDChain for encrypted/raw batches
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Feb 14, 2024
1 parent af28920 commit 5a88084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/scriptpubkeyman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ bool LegacyScriptPubKeyMan::SetHDChain(WalletBatch &batch, const CHDChain& chain
if (!memonly) {
if (chain.IsCrypted() && encrypted_batch) {
if (!encrypted_batch->WriteHDChain(chain))
throw std::runtime_error(std::string(__func__) + ": WriteHDChain failed");
throw std::runtime_error(std::string(__func__) + ": WriteHDChain failed for encrypted batch");
} else {
if (!batch.WriteHDChain(chain)) {
throw std::runtime_error(std::string(__func__) + ": WriteHDChain failed");
Expand Down

0 comments on commit 5a88084

Please sign in to comment.