aboutsummaryrefslogtreecommitdiff
path: root/src/chain.h
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2023-09-11 13:41:28 -0400
committerJames O'Beirne <james.obeirne@pm.me>2023-09-30 06:41:23 -0400
commit99839bbfa7110c7abf22e587ae2f72c9c57d3c85 (patch)
tree77099bb18a56f1002e2f9e37db5e3d8927e08acb /src/chain.h
parent7ee46a755f1d57ce9d51975d3b54dc9ac3d08d52 (diff)
downloadbitcoin-99839bbfa7110c7abf22e587ae2f72c9c57d3c85.tar.xz
doc: add note about confusing HaveTxsDownloaded name
Diffstat (limited to 'src/chain.h')
-rw-r--r--src/chain.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/chain.h b/src/chain.h
index 7806720ce9..78b06719f4 100644
--- a/src/chain.h
+++ b/src/chain.h
@@ -276,6 +276,12 @@ public:
*
* Does not imply the transactions are consensus-valid (ConnectTip might fail)
* Does not imply the transactions are still stored on disk. (IsBlockPruned might return true)
+ *
+ * Note that this will be true for the snapshot base block, if one is loaded (and
+ * all subsequent assumed-valid blocks) since its nChainTx value will have been set
+ * manually based on the related AssumeutxoData entry.
+ *
+ * TODO: potentially change the name of this based on the fact above.
*/
bool HaveTxsDownloaded() const { return nChainTx != 0; }