aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/blockchain_db.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-09-01 11:29:22 +0200
committerRiccardo Spagni <ric@spagni.net>2016-09-01 11:29:22 +0200
commitd3994f1df0bf9a842e6fd58a87928cc73b07c91d (patch)
treef70094f1b2f1c83c45c64a4bfca90c6e8ef1e3ad /src/blockchain_db/blockchain_db.h
parentMerge pull request #1016 (diff)
parentcore: faster find_blockchain_supplement (diff)
downloadmonero-d3994f1df0bf9a842e6fd58a87928cc73b07c91d.tar.xz
Merge pull request #1018
6cf8ca2 core: faster find_blockchain_supplement (moneromooo-monero)
Diffstat (limited to 'src/blockchain_db/blockchain_db.h')
-rw-r--r--src/blockchain_db/blockchain_db.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h
index d26080a3b..5b6a793d8 100644
--- a/src/blockchain_db/blockchain_db.h
+++ b/src/blockchain_db/blockchain_db.h
@@ -736,10 +736,11 @@ public:
* @brief checks if a block exists
*
* @param h the hash of the requested block
+ * @param height if non NULL, returns the block's height if found
*
* @return true of the block exists, otherwise false
*/
- virtual bool block_exists(const crypto::hash& h) const = 0;
+ virtual bool block_exists(const crypto::hash& h, uint64_t *height = NULL) const = 0;
/**
* @brief fetches the block with the given hash