Added beacon indexing (#807)

This commit is contained in:
Giulio rebuffo 2022-12-28 17:43:51 +01:00 committed by GitHub
parent 7da5281947
commit 3105d7ba29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,12 +418,22 @@ const (
PlainContractR = "PlainContractR" // temporary table for PlainContract reconstitution
PlainContractD = "PlainContractD" // temporary table for PlainContract reconstitution, deletes
// Erigon-CL
// Erigon-CL Objects
// [slot] => [Beacon state]
BeaconState = "BeaconState"
// [slot] => [signature + block without execution payload]
BeaconBlocks = "BeaconBlock"
// [slot] => [attestation list (ssz)]
Attestetations = "Attestetations"
// Erigon-CL indexing
// [Slot] => [Root (block root/state root/eth1 root)]
SlotRootIndex = "SlotRootIndex"
// [Root (block root/state root/eth1 root)] => Slot
RootSlotIndex = "RootSlotIndex"
// LightClientStore => LightClientStore object
// LightClientFinalityUpdate => latest finality update
// LightClientOptimisticUpdate => latest optimistic update
@ -575,6 +585,8 @@ var ChaindataTables = []string{
// Beacon stuff
BeaconState,
BeaconBlocks,
SlotRootIndex,
RootSlotIndex,
Attestetations,
LightClient,
LightClientUpdates,