mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
fix: extra logs to distinct WriteHDChain for encrypted/raw batches
This commit is contained in:
parent
e8f84afd3e
commit
b5f4411d11
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user