aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-06-01 19:33:43 +0200
committerRiccardo Spagni <ric@spagni.net>2017-06-01 19:33:43 +0200
commit3d397325bf1c2de80812e6bdf039d4484617f29a (patch)
treed8b052da9ed7896d1d877665611c2056f5805818 /src/cryptonote_core/blockchain.h
parentMerge pull request #2062 (diff)
parentDon't copy blockchain for coinbase_tx_sum (diff)
downloadmonero-3d397325bf1c2de80812e6bdf039d4484617f29a.tar.xz
Merge pull request #2063
d17c0fc2 Don't copy blockchain for coinbase_tx_sum (Howard Chu)
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index 89efe5452..52172012c 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -790,13 +790,15 @@ namespace cryptonote
bool for_all_key_images(std::function<bool(const crypto::key_image&)>) const;
/**
- * @brief perform a check on all blocks in the blockchain
+ * @brief perform a check on all blocks in the blockchain in the given range
*
+ * @param h1 the start height
+ * @param h2 the end height
* @param std::function the check to perform, pass/fail
*
* @return false if any block fails the check, otherwise true
*/
- bool for_all_blocks(std::function<bool(uint64_t, const crypto::hash&, const block&)>) const;
+ bool for_blocks_range(const uint64_t& h1, const uint64_t& h2, std::function<bool(uint64_t, const crypto::hash&, const block&)>) const;
/**
* @brief perform a check on all transactions in the blockchain