diff options
| author | MarcoFalke <[email protected]> | 2018-12-03 18:14:08 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-12-04 10:51:56 -0500 |
| commit | fa4fc8856b239059421a8e507b3e3e7f4b379a72 (patch) | |
| tree | 72b43baae4aafdcb9714f76ecb822a9b0fe63723 /src/chain.h | |
| parent | Merge #13966: gui: When private key is disabled, only show watch-only balance (diff) | |
| download | discoin-fa4fc8856b239059421a8e507b3e3e7f4b379a72.tar.xz discoin-fa4fc8856b239059421a8e507b3e3e7f4b379a72.zip | |
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 1c0c5a7e6..3b786664a 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; |