Skip to content

Commit 99839bb

Browse files
committed
doc: add note about confusing HaveTxsDownloaded name
1 parent 7ee46a7 commit 99839bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/chain.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ class CBlockIndex
276276
*
277277
* Does not imply the transactions are consensus-valid (ConnectTip might fail)
278278
* Does not imply the transactions are still stored on disk. (IsBlockPruned might return true)
279+
*
280+
* Note that this will be true for the snapshot base block, if one is loaded (and
281+
* all subsequent assumed-valid blocks) since its nChainTx value will have been set
282+
* manually based on the related AssumeutxoData entry.
283+
*
284+
* TODO: potentially change the name of this based on the fact above.
279285
*/
280286
bool HaveTxsDownloaded() const { return nChainTx != 0; }
281287

0 commit comments

Comments
 (0)