mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-15 15:28:19 +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)
|
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
|
return nil, err
|
||||||
}
|
}
|
||||||
if err = env.SetOption(mdbx.OptMaxReaders, kv.ReadersLimit); err != nil {
|
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
|
// Erigon-CL
|
||||||
BeaconState = "BeaconState"
|
BeaconState = "BeaconState"
|
||||||
|
|
||||||
|
// LightClientStore => LightClientStore object
|
||||||
|
// LightClientFinalityUpdate => latest finality update
|
||||||
|
// LightClientOptimisticUpdate => latest optimistic update
|
||||||
|
LightClient = "LightClient"
|
||||||
|
// Period (one every 27 hours) => LightClientUpdate
|
||||||
|
LightClientUpdates = "LightClientUpdates"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Keys
|
// Keys
|
||||||
@ -448,6 +455,10 @@ var (
|
|||||||
CurrentBodiesSnapshotHash = []byte("CurrentBodiesSnapshotHash")
|
CurrentBodiesSnapshotHash = []byte("CurrentBodiesSnapshotHash")
|
||||||
CurrentBodiesSnapshotBlock = []byte("CurrentBodiesSnapshotBlock")
|
CurrentBodiesSnapshotBlock = []byte("CurrentBodiesSnapshotBlock")
|
||||||
PlainStateVersion = []byte("PlainStateVersion")
|
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.
|
// ChaindataTables - list of all buckets. App will panic if some bucket is not in this list.
|
||||||
@ -561,6 +572,8 @@ var ChaindataTables = []string{
|
|||||||
VerkleTrie,
|
VerkleTrie,
|
||||||
|
|
||||||
BeaconState,
|
BeaconState,
|
||||||
|
LightClient,
|
||||||
|
LightClientUpdates,
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
Reference in New Issue
Block a user