aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-20 13:31:45 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-20 14:01:52 +0000
commit341b3931ed79dd0b16a04e8a1468179ba5dd22c2 (patch)
treee5a870feb7a5d123625490d5963bab7ce250810e /src/cryptonote_core/blockchain.h
parentMerge pull request #4391 (diff)
downloadmonero-341b3931ed79dd0b16a04e8a1468179ba5dd22c2.tar.xz
cryptonote_core: warn when the block rate deviates from expectations
The warning threshold is set to allow a false positive every ten days on average.
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index 50ceccd0f..f56068db8 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -943,6 +943,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