Skip to content

Commit

Permalink
wallet: Silent payments cannot use fast rescan with filters
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Aug 29, 2023
1 parent f6c48a5 commit 4bbc114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc
ScanResult result;

std::unique_ptr<FastWalletRescanFilter> fast_rescan_filter;
if (!IsLegacy() && chain().hasBlockFilterIndex(BlockFilterType::BASIC)) fast_rescan_filter = std::make_unique<FastWalletRescanFilter>(*this);
if (!IsLegacy() && !IsWalletFlagSet(WALLET_FLAG_SILENT_PAYMENTS) && chain().hasBlockFilterIndex(BlockFilterType::BASIC)) fast_rescan_filter = std::make_unique<FastWalletRescanFilter>(*this);

WalletLogPrintf("Rescan started from block %s... (%s)\n", start_block.ToString(),
fast_rescan_filter ? "fast variant using block filters" : "slow variant inspecting all blocks");
Expand Down

0 comments on commit 4bbc114

Please sign in to comment.