diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-26 22:18:41 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-26 22:18:41 +0200 |
commit | 557c17e206c697174982d28636a29c149f07f630 (patch) | |
tree | 1c7766b3b639478d8582b3616568df0dd4e2fc25 /src/cryptonote_core/blockchain.h | |
parent | Merge pull request #4308 (diff) | |
parent | cryptonote_core: warn when the block rate deviates from expectations (diff) | |
download | monero-557c17e206c697174982d28636a29c149f07f630.tar.xz |
Merge pull request #4408
341b3931 cryptonote_core: warn when the block rate deviates from expectations (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index ab66fac8b..8ebe7b5ce 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -952,6 +952,11 @@ namespace cryptonote */ void on_new_tx_from_block(const cryptonote::transaction &tx); + /** + * @brief returns the timestamps of the last N blocks + */ + std::vector<time_t> get_last_block_timestamps(unsigned int blocks) const; + private: // TODO: evaluate whether or not each of these typedefs are left over from blockchain_storage |