Skip to content

Commit 6366090

Browse files
committed
wallet: Silent payments cannot use fast rescan with filters
1 parent 32b37c9 commit 6366090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc
19581958
ScanResult result;
19591959

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

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

0 commit comments

Comments
 (0)