Skip to content

Commit

Permalink
wallet/rpc: Don't ensure sp wallet is unlock for rescan
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunovo committed Jun 29, 2024
1 parent a4a7f87 commit d899321
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wallet/rpc/transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,9 @@ RPCHelpMan rescanblockchain()
LOCK(pwallet->m_relock_mutex);
{
LOCK(pwallet->cs_wallet);
EnsureWalletIsUnlocked(*pwallet);
if (!pwallet->IsWalletFlagSet(WALLET_FLAG_SILENT_PAYMENTS)) {
EnsureWalletIsUnlocked(*pwallet);
}
int tip_height = pwallet->GetLastBlockHeight();

if (!request.params[0].isNull()) {
Expand Down

0 comments on commit d899321

Please sign in to comment.