Skip to content

Commit 48af307

Browse files
committed
Merge bitcoin/bitcoin#25957: wallet: fast rescan with BIP157 block filters for descriptor wallets
0582932 test: add test for fast rescan using block filters (top-up detection) (Sebastian Falbesoner) ca48a46 rpc: doc: mention rescan speedup using `blockfilterindex=1` in affected wallet RPCs (Sebastian Falbesoner) 3449880 wallet: fast rescan: show log message for every non-skipped block (Sebastian Falbesoner) 935c6c4 wallet: take use of `FastWalletRescanFilter` (Sebastian Falbesoner) 70b3513 wallet: add `FastWalletRescanFilter` class for speeding up rescans (Sebastian Falbesoner) c051026 wallet: add method for retrieving the end range for a ScriptPubKeyMan (Sebastian Falbesoner) 8452791 wallet: support fetching scriptPubKeys with minimum descriptor range index (Sebastian Falbesoner) 088e38d add chain interface methods for using BIP 157 block filters (Sebastian Falbesoner) Pull request description: ## Description This PR is another take of using BIP 157 block filters (enabled by `-blockfilterindex=1`) for faster wallet rescans and is a modern revival of #15845. For reviewers new to this topic I can highly recommend to read the corresponding PR review club (https://bitcoincore.reviews/15845). The basic idea is to skip blocks for deeper inspection (i.e. looking at every single tx for matches) if our block filter doesn't match any of the block's spent or created UTXOs are relevant for our wallet. Note that there can be false-positives (see https://bitcoincore.reviews/15845#l-199 for a PR review club discussion about false-positive rates), but no false-negatives, i.e. it is safe to skip blocks if the filter doesn't match; if the filter *does* match even though there are no wallet-relevant txs in the block, no harm is done, only a little more time is spent extra. In contrast to #15845, this solution only supports descriptor wallets, which are way more widespread now than back in the time >3 years ago. With that approach, we don't have to ever derive the relevant scriptPubKeys ourselves from keys before populating the filter, and can instead shift the full responsibility to that to the `DescriptorScriptPubKeyMan` which already takes care of that automatically. Compared to legacy wallets, the `IsMine` logic for descriptor wallets is as trivial as checking if a scriptPubKey is included in the ScriptPubKeyMan's set of scriptPubKeys (`m_map_script_pub_keys`): https://github.com/bitcoin/bitcoin/blob/e191fac4f3c37820f0618f72f0a8e8b524531ab8/src/wallet/scriptpubkeyman.cpp#L1703-L1710 One of the unaddressed issues of #15845 was that [the filter was only created once outside the loop](bitcoin/bitcoin#15845 (comment)) and as such didn't take into account possible top-ups that have happened. This is solved here by keeping a state of ranged `DescriptorScriptPubKeyMan`'s descriptor end ranges and check at each iteration whether that range has increased since last time. If yes, we update the filter with all scriptPubKeys that have been added since the last filter update with a range index equal or higher than the last end range. Note that finding new scriptPubKeys could be made more efficient than linearly iterating through the whole `m_script_pub_keys` map (e.g. by introducing a bidirectional map), but this would mean introducing additional complexity and state and it's probably not worth it at this time, considering that the performance gain is already significant. Output scripts from non-ranged `DescriptorScriptPubKeyMan`s (i.e. ones with a fixed set of output scripts that is never extended) are added only once when the filter is created first. ## Benchmark results Obviously, the speed-up indirectly correlates with the wallet tx frequency in the scanned range: the more blocks contain wallet-related transactions, the less blocks can be skipped due to block filter detection. In a [simple benchmark](https://github.com/theStack/bitcoin/blob/fast_rescan_functional_test_benchmark/test/functional/pr25957_benchmark.py), a regtest chain with 1008 blocks (corresponding to 1 week) is mined with 20000 scriptPubKeys contained (25 txs * 800 outputs) each. The blocks each have a weight of ~2500000 WUs and hence are about 62.5% full. A global constant `WALLET_TX_BLOCK_FREQUENCY` defines how often wallet-related txs are included in a block. The created descriptor wallet (default setting of `keypool=1000`, we have 8*1000 = 8000 scriptPubKeys at the start) is backuped via the `backupwallet` RPC before the mining starts and imported via `restorewallet` RPC after. The measured time for taking this import process (which involves a rescan) once with block filters (`-blockfilterindex=1`) and once without block filters (`-blockfilterindex=0`) yield the relevant result numbers for the benchmark. The following table lists the results, sorted from worst-case (all blocks contain wallte-relevant txs, 0% can be skipped) to best-case (no blocks contain walltet-relevant txs, 100% can be skipped) where the frequencies have been picked arbitrarily: wallet-related tx frequency; 1 tx per... | ratio of irrelevant blocks | w/o filters | with filters | speed gain --------------------------------------------|-----------------------------|-------------|--------------|------------- ~ 10 minutes (every block) | 0% | 56.806s | 63.554s | ~0.9x ~ 20 minutes (every 2nd block) | 50% (1/2) | 58.896s | 36.076s | ~1.6x ~ 30 minutes (every 3rd block) | 66.67% (2/3) | 56.781s | 25.430s | ~2.2x ~ 1 hour (every 6th block) | 83.33% (5/6) | 58.193s | 15.786s | ~3.7x ~ 6 hours (every 36th block) | 97.22% (35/36) | 57.500s | 6.935s | ~8.3x ~ 1 day (every 144th block) | 99.31% (143/144) | 68.881s | 6.107s | ~11.3x (no txs) | 100% | 58.529s | 5.630s | ~10.4x Since even the (rather unrealistic) worst-case scenario of having wallet-related txs in _every_ block of the rescan range obviously doesn't take significantly longer, I'd argue it's reasonable to always take advantage of block filters if they are available and there's no need to provide an option for the user. Feedback about the general approach (but also about details like naming, where I struggled a lot) would be greatly appreciated. Thanks fly out to furszy for discussing this subject and patiently answering basic question about descriptor wallets! ACKs for top commit: achow101: ACK 0582932 Sjors: re-utACK 0582932 aureleoules: ACK 0582932 - minor changes, documentation and updated test since last review w0xlt: re-ACK bitcoin/bitcoin@0582932 Tree-SHA512: 3289ba6e4572726e915d19f3e8b251d12a4cec8c96d041589956c484b5575e3708b14f6e1e121b05fe98aff1c8724de4564a5a9123f876967d33343cbef242e1
2 parents 69b1021 + 0582932 commit 48af307

File tree

11 files changed

+264
-34
lines changed

11 files changed

+264
-34
lines changed

src/interfaces/chain.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef BITCOIN_INTERFACES_CHAIN_H
66
#define BITCOIN_INTERFACES_CHAIN_H
77

8+
#include <blockfilter.h>
89
#include <primitives/transaction.h> // For CTransactionRef
910
#include <util/settings.h> // For util::SettingsValue
1011

@@ -143,6 +144,13 @@ class Chain
143144
//! or one of its ancestors.
144145
virtual std::optional<int> findLocatorFork(const CBlockLocator& locator) = 0;
145146

147+
//! Returns whether a block filter index is available.
148+
virtual bool hasBlockFilterIndex(BlockFilterType filter_type) = 0;
149+
150+
//! Returns whether any of the elements match the block via a BIP 157 block filter
151+
//! or std::nullopt if the block filter for this block couldn't be found.
152+
virtual std::optional<bool> blockFilterMatchesAny(BlockFilterType filter_type, const uint256& block_hash, const GCSFilter::ElementSet& filter_set) = 0;
153+
146154
//! Return whether node has the block and optionally return block metadata
147155
//! or contents.
148156
virtual bool findBlock(const uint256& hash, const FoundBlock& block={}) = 0;

src/logging.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ const CLogCategoryDesc LogCategories[] =
181181
{BCLog::UTIL, "util"},
182182
{BCLog::BLOCKSTORE, "blockstorage"},
183183
{BCLog::TXRECONCILIATION, "txreconciliation"},
184+
{BCLog::SCAN, "scan"},
184185
{BCLog::ALL, "1"},
185186
{BCLog::ALL, "all"},
186187
};
@@ -283,6 +284,8 @@ std::string LogCategoryToStr(BCLog::LogFlags category)
283284
return "blockstorage";
284285
case BCLog::LogFlags::TXRECONCILIATION:
285286
return "txreconciliation";
287+
case BCLog::LogFlags::SCAN:
288+
return "scan";
286289
case BCLog::LogFlags::ALL:
287290
return "all";
288291
}

src/logging.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ namespace BCLog {
6767
UTIL = (1 << 25),
6868
BLOCKSTORE = (1 << 26),
6969
TXRECONCILIATION = (1 << 27),
70+
SCAN = (1 << 28),
7071
ALL = ~(uint32_t)0,
7172
};
7273
enum class Level {

src/node/interfaces.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44

55
#include <addrdb.h>
66
#include <banman.h>
7+
#include <blockfilter.h>
78
#include <chain.h>
89
#include <chainparams.h>
910
#include <deploymentstatus.h>
1011
#include <external_signer.h>
12+
#include <index/blockfilterindex.h>
1113
#include <init.h>
1214
#include <interfaces/chain.h>
1315
#include <interfaces/handler.h>
@@ -536,6 +538,20 @@ class ChainImpl : public Chain
536538
}
537539
return std::nullopt;
538540
}
541+
bool hasBlockFilterIndex(BlockFilterType filter_type) override
542+
{
543+
return GetBlockFilterIndex(filter_type) != nullptr;
544+
}
545+
std::optional<bool> blockFilterMatchesAny(BlockFilterType filter_type, const uint256& block_hash, const GCSFilter::ElementSet& filter_set) override
546+
{
547+
const BlockFilterIndex* block_filter_index{GetBlockFilterIndex(filter_type)};
548+
if (!block_filter_index) return std::nullopt;
549+
550+
BlockFilter filter;
551+
const CBlockIndex* index{WITH_LOCK(::cs_main, return chainman().m_blockman.LookupBlockIndex(block_hash))};
552+
if (index == nullptr || !block_filter_index->LookupFilter(index, filter)) return std::nullopt;
553+
return filter.GetFilter().MatchAny(filter_set);
554+
}
539555
bool findBlock(const uint256& hash, const FoundBlock& block) override
540556
{
541557
WAIT_LOCK(cs_main, lock);

src/wallet/rpc/backup.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,8 @@ RPCHelpMan importdescriptors()
15891589
return RPCHelpMan{"importdescriptors",
15901590
"\nImport descriptors. This will trigger a rescan of the blockchain based on the earliest timestamp of all descriptors being imported. Requires a new wallet backup.\n"
15911591
"\nNote: This call can take over an hour to complete if using an early timestamp; during that time, other rpc calls\n"
1592-
"may report that the imported keys, addresses or scripts exist but related transactions are still missing.\n",
1592+
"may report that the imported keys, addresses or scripts exist but related transactions are still missing.\n"
1593+
"The rescan is significantly faster if block filters are available (using startup option \"-blockfilterindex=1\").\n",
15931594
{
15941595
{"requests", RPCArg::Type::ARR, RPCArg::Optional::NO, "Data to be imported",
15951596
{
@@ -1887,7 +1888,9 @@ RPCHelpMan restorewallet()
18871888
{
18881889
return RPCHelpMan{
18891890
"restorewallet",
1890-
"\nRestore and loads a wallet from backup.\n",
1891+
"\nRestore and loads a wallet from backup.\n"
1892+
"\nThe rescan is significantly faster if a descriptor wallet is restored"
1893+
"\nand block filters are available (using startup option \"-blockfilterindex=1\").\n",
18911894
{
18921895
{"wallet_name", RPCArg::Type::STR, RPCArg::Optional::NO, "The name that will be applied to the restored wallet"},
18931896
{"backup_file", RPCArg::Type::STR, RPCArg::Optional::NO, "The backup file that will be used to restore the wallet."},

src/wallet/rpc/transactions.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,9 @@ RPCHelpMan rescanblockchain()
839839
{
840840
return RPCHelpMan{"rescanblockchain",
841841
"\nRescan the local blockchain for wallet related transactions.\n"
842-
"Note: Use \"getwalletinfo\" to query the scanning progress.\n",
842+
"Note: Use \"getwalletinfo\" to query the scanning progress.\n"
843+
"The rescan is significantly faster when used on a descriptor wallet\n"
844+
"and block filters are available (using startup option \"-blockfilterindex=1\").\n",
843845
{
844846
{"start_height", RPCArg::Type::NUM, RPCArg::Default{0}, "block height where the rescan should start"},
845847
{"stop_height", RPCArg::Type::NUM, RPCArg::Optional::OMITTED_NAMED_ARG, "the last block height that should be scanned. If none is provided it will rescan up to the tip at return time of this call."},

src/wallet/scriptpubkeyman.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,17 +2644,27 @@ const WalletDescriptor DescriptorScriptPubKeyMan::GetWalletDescriptor() const
26442644
}
26452645

26462646
const std::unordered_set<CScript, SaltedSipHasher> DescriptorScriptPubKeyMan::GetScriptPubKeys() const
2647+
{
2648+
return GetScriptPubKeys(0);
2649+
}
2650+
2651+
const std::unordered_set<CScript, SaltedSipHasher> DescriptorScriptPubKeyMan::GetScriptPubKeys(int32_t minimum_index) const
26472652
{
26482653
LOCK(cs_desc_man);
26492654
std::unordered_set<CScript, SaltedSipHasher> script_pub_keys;
26502655
script_pub_keys.reserve(m_map_script_pub_keys.size());
26512656

2652-
for (auto const& script_pub_key: m_map_script_pub_keys) {
2653-
script_pub_keys.insert(script_pub_key.first);
2657+
for (auto const& [script_pub_key, index] : m_map_script_pub_keys) {
2658+
if (index >= minimum_index) script_pub_keys.insert(script_pub_key);
26542659
}
26552660
return script_pub_keys;
26562661
}
26572662

2663+
int32_t DescriptorScriptPubKeyMan::GetEndRange() const
2664+
{
2665+
return m_max_cached_index + 1;
2666+
}
2667+
26582668
bool DescriptorScriptPubKeyMan::GetDescriptorString(std::string& out, const bool priv) const
26592669
{
26602670
LOCK(cs_desc_man);

src/wallet/scriptpubkeyman.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,8 @@ class DescriptorScriptPubKeyMan : public ScriptPubKeyMan
643643

644644
const WalletDescriptor GetWalletDescriptor() const EXCLUSIVE_LOCKS_REQUIRED(cs_desc_man);
645645
const std::unordered_set<CScript, SaltedSipHasher> GetScriptPubKeys() const override;
646+
const std::unordered_set<CScript, SaltedSipHasher> GetScriptPubKeys(int32_t minimum_index) const;
647+
int32_t GetEndRange() const;
646648

647649
bool GetDescriptorString(std::string& out, const bool priv) const;
648650

src/wallet/wallet.cpp

Lines changed: 111 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <wallet/wallet.h>
77

8+
#include <blockfilter.h>
89
#include <chain.h>
910
#include <consensus/amount.h>
1011
#include <consensus/consensus.h>
@@ -261,6 +262,64 @@ std::shared_ptr<CWallet> LoadWalletInternal(WalletContext& context, const std::s
261262
return nullptr;
262263
}
263264
}
265+
266+
class FastWalletRescanFilter
267+
{
268+
public:
269+
FastWalletRescanFilter(const CWallet& wallet) : m_wallet(wallet)
270+
{
271+
// fast rescanning via block filters is only supported by descriptor wallets right now
272+
assert(!m_wallet.IsLegacy());
273+
274+
// create initial filter with scripts from all ScriptPubKeyMans
275+
for (auto spkm : m_wallet.GetAllScriptPubKeyMans()) {
276+
auto desc_spkm{dynamic_cast<DescriptorScriptPubKeyMan*>(spkm)};
277+
assert(desc_spkm != nullptr);
278+
AddScriptPubKeys(desc_spkm);
279+
// save each range descriptor's end for possible future filter updates
280+
if (desc_spkm->IsHDEnabled()) {
281+
m_last_range_ends.emplace(desc_spkm->GetID(), desc_spkm->GetEndRange());
282+
}
283+
}
284+
}
285+
286+
void UpdateIfNeeded()
287+
{
288+
// repopulate filter with new scripts if top-up has happened since last iteration
289+
for (const auto& [desc_spkm_id, last_range_end] : m_last_range_ends) {
290+
auto desc_spkm{dynamic_cast<DescriptorScriptPubKeyMan*>(m_wallet.GetScriptPubKeyMan(desc_spkm_id))};
291+
assert(desc_spkm != nullptr);
292+
int32_t current_range_end{desc_spkm->GetEndRange()};
293+
if (current_range_end > last_range_end) {
294+
AddScriptPubKeys(desc_spkm, last_range_end);
295+
m_last_range_ends.at(desc_spkm->GetID()) = current_range_end;
296+
}
297+
}
298+
}
299+
300+
std::optional<bool> MatchesBlock(const uint256& block_hash) const
301+
{
302+
return m_wallet.chain().blockFilterMatchesAny(BlockFilterType::BASIC, block_hash, m_filter_set);
303+
}
304+
305+
private:
306+
const CWallet& m_wallet;
307+
/** Map for keeping track of each range descriptor's last seen end range.
308+
* This information is used to detect whether new addresses were derived
309+
* (that is, if the current end range is larger than the saved end range)
310+
* after processing a block and hence a filter set update is needed to
311+
* take possible keypool top-ups into account.
312+
*/
313+
std::map<uint256, int32_t> m_last_range_ends;
314+
GCSFilter::ElementSet m_filter_set;
315+
316+
void AddScriptPubKeys(const DescriptorScriptPubKeyMan* desc_spkm, int32_t last_range_end = 0)
317+
{
318+
for (const auto& script_pub_key : desc_spkm->GetScriptPubKeys(last_range_end)) {
319+
m_filter_set.emplace(script_pub_key.begin(), script_pub_key.end());
320+
}
321+
}
322+
};
264323
} // namespace
265324

266325
std::shared_ptr<CWallet> LoadWallet(WalletContext& context, const std::string& name, std::optional<bool> load_on_start, const DatabaseOptions& options, DatabaseStatus& status, bilingual_str& error, std::vector<bilingual_str>& warnings)
@@ -1755,7 +1814,11 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc
17551814
uint256 block_hash = start_block;
17561815
ScanResult result;
17571816

1758-
WalletLogPrintf("Rescan started from block %s...\n", start_block.ToString());
1817+
std::unique_ptr<FastWalletRescanFilter> fast_rescan_filter;
1818+
if (!IsLegacy() && chain().hasBlockFilterIndex(BlockFilterType::BASIC)) fast_rescan_filter = std::make_unique<FastWalletRescanFilter>(*this);
1819+
1820+
WalletLogPrintf("Rescan started from block %s... (%s)\n", start_block.ToString(),
1821+
fast_rescan_filter ? "fast variant using block filters" : "slow variant inspecting all blocks");
17591822

17601823
fAbortRescan = false;
17611824
ShowProgress(strprintf("%s " + _("Rescanning…").translated, GetDisplayName()), 0); // show rescan progress in GUI as dialog or on splashscreen, if rescan required on startup (e.g. due to corruption)
@@ -1782,9 +1845,22 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc
17821845
WalletLogPrintf("Still rescanning. At block %d. Progress=%f\n", block_height, progress_current);
17831846
}
17841847

1785-
// Read block data
1786-
CBlock block;
1787-
chain().findBlock(block_hash, FoundBlock().data(block));
1848+
bool fetch_block{true};
1849+
if (fast_rescan_filter) {
1850+
fast_rescan_filter->UpdateIfNeeded();
1851+
auto matches_block{fast_rescan_filter->MatchesBlock(block_hash)};
1852+
if (matches_block.has_value()) {
1853+
if (*matches_block) {
1854+
LogPrint(BCLog::SCAN, "Fast rescan: inspect block %d [%s] (filter matched)\n", block_height, block_hash.ToString());
1855+
} else {
1856+
result.last_scanned_block = block_hash;
1857+
result.last_scanned_height = block_height;
1858+
fetch_block = false;
1859+
}
1860+
} else {
1861+
LogPrint(BCLog::SCAN, "Fast rescan: inspect block %d [%s] (WARNING: block filter not found!)\n", block_height, block_hash.ToString());
1862+
}
1863+
}
17881864

17891865
// Find next block separately from reading data above, because reading
17901866
// is slow and there might be a reorg while it is read.
@@ -1793,35 +1869,41 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc
17931869
uint256 next_block_hash;
17941870
chain().findBlock(block_hash, FoundBlock().inActiveChain(block_still_active).nextBlock(FoundBlock().inActiveChain(next_block).hash(next_block_hash)));
17951871

1796-
if (!block.IsNull()) {
1797-
LOCK(cs_wallet);
1798-
if (!block_still_active) {
1799-
// Abort scan if current block is no longer active, to prevent
1800-
// marking transactions as coming from the wrong block.
1801-
result.last_failed_block = block_hash;
1802-
result.status = ScanResult::FAILURE;
1803-
break;
1804-
}
1805-
for (size_t posInBlock = 0; posInBlock < block.vtx.size(); ++posInBlock) {
1806-
SyncTransaction(block.vtx[posInBlock], TxStateConfirmed{block_hash, block_height, static_cast<int>(posInBlock)}, fUpdate, /*rescanning_old_block=*/true);
1807-
}
1808-
// scan succeeded, record block as most recent successfully scanned
1809-
result.last_scanned_block = block_hash;
1810-
result.last_scanned_height = block_height;
1872+
if (fetch_block) {
1873+
// Read block data
1874+
CBlock block;
1875+
chain().findBlock(block_hash, FoundBlock().data(block));
1876+
1877+
if (!block.IsNull()) {
1878+
LOCK(cs_wallet);
1879+
if (!block_still_active) {
1880+
// Abort scan if current block is no longer active, to prevent
1881+
// marking transactions as coming from the wrong block.
1882+
result.last_failed_block = block_hash;
1883+
result.status = ScanResult::FAILURE;
1884+
break;
1885+
}
1886+
for (size_t posInBlock = 0; posInBlock < block.vtx.size(); ++posInBlock) {
1887+
SyncTransaction(block.vtx[posInBlock], TxStateConfirmed{block_hash, block_height, static_cast<int>(posInBlock)}, fUpdate, /*rescanning_old_block=*/true);
1888+
}
1889+
// scan succeeded, record block as most recent successfully scanned
1890+
result.last_scanned_block = block_hash;
1891+
result.last_scanned_height = block_height;
18111892

1812-
if (save_progress && next_interval) {
1813-
CBlockLocator loc = m_chain->getActiveChainLocator(block_hash);
1893+
if (save_progress && next_interval) {
1894+
CBlockLocator loc = m_chain->getActiveChainLocator(block_hash);
18141895

1815-
if (!loc.IsNull()) {
1816-
WalletLogPrintf("Saving scan progress %d.\n", block_height);
1817-
WalletBatch batch(GetDatabase());
1818-
batch.WriteBestBlock(loc);
1896+
if (!loc.IsNull()) {
1897+
WalletLogPrintf("Saving scan progress %d.\n", block_height);
1898+
WalletBatch batch(GetDatabase());
1899+
batch.WriteBestBlock(loc);
1900+
}
18191901
}
1902+
} else {
1903+
// could not scan block, keep scanning but record this block as the most recent failure
1904+
result.last_failed_block = block_hash;
1905+
result.status = ScanResult::FAILURE;
18201906
}
1821-
} else {
1822-
// could not scan block, keep scanning but record this block as the most recent failure
1823-
result.last_failed_block = block_hash;
1824-
result.status = ScanResult::FAILURE;
18251907
}
18261908
if (max_height && block_height >= *max_height) {
18271909
break;

test/functional/test_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
# vv Tests less than 30s vv
137137
'wallet_keypool_topup.py --legacy-wallet',
138138
'wallet_keypool_topup.py --descriptors',
139+
'wallet_fast_rescan.py --descriptors',
139140
'feature_fee_estimation.py',
140141
'interface_zmq.py',
141142
'rpc_invalid_address_message.py',

0 commit comments

Comments
 (0)