fix: extra logs to distinct WriteHDChain for encrypted/raw batches

This commit is contained in:
Konstantin Akimov 2024-02-14 13:44:32 +07:00
parent e8f84afd3e
commit b5f4411d11
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -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");