diff options
author | James O'Beirne <james.obeirne@gmail.com> | 2019-03-29 17:10:11 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2022-02-15 20:49:46 -0500 |
commit | 817326a828d6148dc63d9ef08f641b9c0c522411 (patch) | |
tree | 1c6c506f33d4eba6632734da02850fa3ae657a80 /src/node | |
parent | d0bf9bb6a539f151ec92725d20a2b6c22cb095a5 (diff) | |
download | bitcoin-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/node')
-rw-r--r-- | src/node/interfaces.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index 1a48957f0f..855db7b0ec 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -723,6 +723,11 @@ public: notifications.transactionAddedToMempool(entry.GetSharedTx(), 0 /* mempool_sequence */); } } + bool hasAssumedValidChain() override + { + return Assert(m_node.chainman)->IsSnapshotActive(); + } + NodeContext& m_node; }; } // namespace |