aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2021-04-13 10:49:54 -0400
committerJames O'Beirne <james.obeirne@pm.me>2021-04-23 15:06:54 -0400
commit844ad0eccaa1dbfefc30d19804d95d67c3d5f06d (patch)
tree384744de1f42e5589fe46de90ceef11b057372e0
parent9b604c0207b526c008617cdca210f35db5e344db (diff)
doc: IsSnapshotActive
-rw-r--r--src/validation.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h
index d3341f491e..d901cdc15f 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -919,6 +919,8 @@ public:
return m_blockman.m_block_index;
}
+ //! @returns true if a snapshot-based chainstate is in use. Also implies
+ //! that a background validation chainstate is also in use.
bool IsSnapshotActive() const;
std::optional<uint256> SnapshotBlockhash() const;