diff --git a/kv/mdbx/kv_mdbx.go b/kv/mdbx/kv_mdbx.go index 2c3769e9b..aa76ca787 100644 --- a/kv/mdbx/kv_mdbx.go +++ b/kv/mdbx/kv_mdbx.go @@ -183,7 +183,7 @@ func (opts MdbxOpts) Open() (kv.RwDB, error) { return nil, fmt.Errorf("db verbosity set: %w", err) } } - if err = env.SetOption(mdbx.OptMaxDB, 100); err != nil { + if err = env.SetOption(mdbx.OptMaxDB, 200); err != nil { return nil, err } if err = env.SetOption(mdbx.OptMaxReaders, kv.ReadersLimit); err != nil { diff --git a/kv/tables.go b/kv/tables.go index ce12f2299..ae3a7621d 100644 --- a/kv/tables.go +++ b/kv/tables.go @@ -421,6 +421,13 @@ const ( // Erigon-CL BeaconState = "BeaconState" + + // LightClientStore => LightClientStore object + // LightClientFinalityUpdate => latest finality update + // LightClientOptimisticUpdate => latest optimistic update + LightClient = "LightClient" + // Period (one every 27 hours) => LightClientUpdate + LightClientUpdates = "LightClientUpdates" ) // Keys @@ -448,6 +455,10 @@ var ( CurrentBodiesSnapshotHash = []byte("CurrentBodiesSnapshotHash") CurrentBodiesSnapshotBlock = []byte("CurrentBodiesSnapshotBlock") PlainStateVersion = []byte("PlainStateVersion") + + LightClientStore = []byte("LightClientStore") + LightClientFinalityUpdate = []byte("LightClientFinalityUpdate") + LightClientOptimisticUpdate = []byte("LightClientOptimisticUpdate") ) // ChaindataTables - list of all buckets. App will panic if some bucket is not in this list. @@ -561,6 +572,8 @@ var ChaindataTables = []string{ VerkleTrie, BeaconState, + LightClient, + LightClientUpdates, } const (