diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-04 00:15:57 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-05 09:35:19 +0000 |
commit | 089c7637a64652c8bcf6c437065237c23266d4a9 (patch) | |
tree | 1edb32e38080ab18184c0809ce0607c060682d05 /src/blockchain_db/testdb.h | |
parent | Merge pull request #5390 (diff) | |
download | monero-089c7637a64652c8bcf6c437065237c23266d4a9.tar.xz |
cryptonote: rework block blob size sanity check
Use the actual block weight limit, assuming that weight is always
greater or equal to size
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_db/testdb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blockchain_db/testdb.h b/src/blockchain_db/testdb.h index 7916364c5..04fad26a4 100644 --- a/src/blockchain_db/testdb.h +++ b/src/blockchain_db/testdb.h @@ -149,6 +149,9 @@ public: virtual bool update_pruning() { return true; } virtual bool check_pruning() { return true; } virtual void prune_outputs(uint64_t amount) {} + + virtual uint64_t get_max_block_size() { return 100000000; } + virtual void add_max_block_size(uint64_t sz) { } }; } |