We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c26bbec commit 5ce2199Copy full SHA for 5ce2199
src/wallet/wallet.cpp
@@ -3758,6 +3758,10 @@ util::Result<std::reference_wrapper<DescriptorScriptPubKeyMan>> CWallet::AddWall
3758
// Save the descriptor to memory
3759
uint256 id = new_spk_man->GetID();
3760
AddScriptPubKeyMan(id, std::move(new_spk_man));
3761
+
3762
+ // Write the existing cache to disk
3763
+ WalletBatch batch(GetDatabase());
3764
+ batch.WriteDescriptorCacheItems(id, desc.cache);
3765
}
3766
3767
// Add the private keys to the descriptor
0 commit comments