aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorw0xlt <94266259+w0xlt@users.noreply.github.com>2022-04-29 19:10:57 -0300
committerw0xlt <94266259+w0xlt@users.noreply.github.com>2022-06-23 17:13:40 -0300
commita89ddfbe22b6db5beda678c9493e08fec6144122 (patch)
treedaa867fa82c14e42326b6f9110786f47fe2c5a13 /src/interfaces
parentd4d9daff7ab60a9f0cae0a34f86be0bb497f62f4 (diff)
wallet: Save wallet scan progress
Currently, the wallet scan progress is not saved. If it is interrupted, it will be necessary to start from scratch on the next load. With this change, progress is saved every 60 seconds. Co-authored-by: furszy <matiasfurszyfer@protonmail.com> Co-authored-by: Jon Atack <jon@atack.com> Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/chain.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h
index ddfb4bda95..df9e55874f 100644
--- a/src/interfaces/chain.h
+++ b/src/interfaces/chain.h
@@ -111,6 +111,10 @@ public:
//! Get locator for the current chain tip.
virtual CBlockLocator getTipLocator() = 0;
+ //! Return a locator that refers to a block in the active chain.
+ //! If specified block is not in the active chain, return locator for the latest ancestor that is in the chain.
+ virtual CBlockLocator getActiveChainLocator(const uint256& block_hash) = 0;
+
//! Return height of the highest block on chain in common with the locator,
//! which will either be the original block used to create the locator,
//! or one of its ancestors.