aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@gmail.com>2019-03-29 17:10:11 -0400
committerJames O'Beirne <james.obeirne@pm.me>2022-02-15 20:49:46 -0500
commit817326a828d6148dc63d9ef08f641b9c0c522411 (patch)
tree1c6c506f33d4eba6632734da02850fa3ae657a80 /src/interfaces
parentd0bf9bb6a539f151ec92725d20a2b6c22cb095a5 (diff)
downloadbitcoin-817326a828d6148dc63d9ef08f641b9c0c522411.tar.xz
wallet: avoid rescans if under the snapshot
Refuse to load a wallet if it requires a rescan lower than the height of an unvalidated snapshot we're running -- in more general terms, if we don't have data for the blocks.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/chain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h
index 4f5105a5c1..07acf880c6 100644
--- a/src/interfaces/chain.h
+++ b/src/interfaces/chain.h
@@ -286,6 +286,9 @@ public:
//! to be prepared to handle this by ignoring notifications about unknown
//! removed transactions and already added new transactions.
virtual void requestMempoolTransactions(Notifications& notifications) = 0;
+
+ //! Return true if an assumed-valid chain is in use.
+ virtual bool hasAssumedValidChain() = 0;
};
//! Interface to let node manage chain clients (wallets, or maybe tools for