mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-27 22:28:21 +00:00
Added light client database tables (#736)
This commit is contained in:
parent
10e842853b
commit
b0cda9f301
@ -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 {
|
||||
|
13
kv/tables.go
13
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 (
|
||||
|
Loading…
Reference in New Issue
Block a user