diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-12-03 18:14:08 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-12-04 10:51:56 -0500 |
commit | fa4fc8856b239059421a8e507b3e3e7f4b379a72 (patch) | |
tree | 72b43baae4aafdcb9714f76ecb822a9b0fe63723 /src/chain.h | |
parent | ed12fd83ca7999a896350197533de5e9202bc2fe (diff) |
validation: Add and use HaveTxsDownloaded where appropriate
Diffstat (limited to 'src/chain.h')
-rw-r--r-- | src/chain.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/chain.h b/src/chain.h index 1c0c5a7e69..3b786664af 100644 --- a/src/chain.h +++ b/src/chain.h @@ -294,6 +294,15 @@ public: return *phashBlock; } + /** + * Check whether this block's and all previous blocks' transactions have been + * downloaded (and stored to disk) at some point. + * + * 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) + */ + bool HaveTxsDownloaded() const { return nChainTx != 0; } + int64_t GetBlockTime() const { return (int64_t)nTime; |