mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-29 07:07:16 +00:00
Add ParliaSnapshot table to database for Binance Smart Chain support (#190)
* Add ParliaSnapshot table to database for Binance Smart Chain support * Add schema description for ParliaSnapshot table
This commit is contained in:
parent
4258567eb7
commit
057925ba08
@ -42,6 +42,7 @@ SyncStageUnwind = {}
|
||||
CliqueSeparate = {}
|
||||
CliqueSnapshot = {}
|
||||
CliqueLastSnapshot = {}
|
||||
ParliaSnapshot = {}
|
||||
TxSender = {}
|
||||
LastBlock = {}
|
||||
Migration = {}
|
||||
|
14
kv/tables.go
14
kv/tables.go
@ -260,6 +260,19 @@ const (
|
||||
CliqueSnapshot = "CliqueSnapshot"
|
||||
CliqueLastSnapshot = "CliqueLastSnapshot"
|
||||
|
||||
// Snapshot table used for Binance Smart Chain's consensus engine Parlia
|
||||
// Schema of key/value pairs containing:
|
||||
// Key (string): SnapshotFullKey = SnapshotBucket + num (uint64 big endian) + hash
|
||||
// Value (JSON blob):
|
||||
// {
|
||||
// "number" // Block number where the snapshot was created
|
||||
// "hash" // Block hash where the snapshot was created
|
||||
// "validators" // Set of authorized validators at this moment
|
||||
// "recents" // Set of recent validators for spam protections
|
||||
// "recent_fork_hashes" // Set of recent forkHash
|
||||
// }
|
||||
ParliaSnapshot = "ParliaSnapshot"
|
||||
|
||||
// Proof-of-stake
|
||||
// Beacon chain head that is been executed at the current time
|
||||
CurrentExecutionPayload = "CurrentExecutionPayload"
|
||||
@ -337,6 +350,7 @@ var ChaindataTables = []string{
|
||||
CliqueSeparate,
|
||||
CliqueLastSnapshot,
|
||||
CliqueSnapshot,
|
||||
ParliaSnapshot,
|
||||
SyncStageProgress,
|
||||
PlainState,
|
||||
PlainContractCode,
|
||||
|
Loading…
Reference in New Issue
Block a user