aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-11 12:41:07 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-11 12:41:07 +0200
commit76fbcfe2ddf597b4d8f6d2f5e6f387d57db427eb (patch)
tree4d9fdf15d9e1eab2482dd11e3c8d2e69864e1765 /src/blockchain_db/lmdb/db_lmdb.h
parentMerge pull request #4939 (diff)
parentcryptonote: rework block blob size sanity check (diff)
downloadmonero-76fbcfe2ddf597b4d8f6d2f5e6f387d57db427eb.tar.xz
Merge pull request #5123
089c7637 cryptonote: rework block blob size sanity check (moneromooo-monero)
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.h')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h
index 2f89b77ac..f6b00817d 100644
--- a/src/blockchain_db/lmdb/db_lmdb.h
+++ b/src/blockchain_db/lmdb/db_lmdb.h
@@ -400,6 +400,9 @@ private:
std::vector<uint64_t> get_block_info_64bit_fields(uint64_t start_height, size_t count, off_t offset) const;
+ uint64_t get_max_block_size();
+ void add_max_block_size(uint64_t sz);
+
// fix up anything that may be wrong due to past bugs
virtual void fixup();