increase max db object size (fixes #1996)

This commit is contained in:
Jacek Sieka 2020-11-12 08:42:45 +01:00
parent cbdab07579
commit 5644cfae8f
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ type
parent_root*: Eth2Digest
const
maxDecompressedDbRecordSize = 16*1024*1024
# The largest object we're saving is the BeaconState, and by far, the largest
# part of it is the validator - each validator takes up at least 129 bytes
# in phase0, which means 100k validators is >12mb - in addition to this,
# there are several MB of hashes.
maxDecompressedDbRecordSize = 64*1024*1024
# Subkeys essentially create "tables" within the key-value store by prefixing
# each entry with a table id