mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +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 (!memonly) {
|
||||||
if (chain.IsCrypted() && encrypted_batch) {
|
if (chain.IsCrypted() && encrypted_batch) {
|
||||||
if (!encrypted_batch->WriteHDChain(chain))
|
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 {
|
} else {
|
||||||
if (!batch.WriteHDChain(chain)) {
|
if (!batch.WriteHDChain(chain)) {
|
||||||
throw std::runtime_error(std::string(__func__) + ": WriteHDChain failed");
|
throw std::runtime_error(std::string(__func__) + ": WriteHDChain failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user