From b5f4411d11b89ba2ba924d2262ddd3ebae3302b6 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Wed, 14 Feb 2024 13:44:32 +0700 Subject: [PATCH] fix: extra logs to distinct WriteHDChain for encrypted/raw batches --- src/wallet/scriptpubkeyman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index 28093cca93..d223b561f4 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -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");