diff --git a/interfaces/db_tables.toml b/interfaces/db_tables.toml index a23bf28fc..4e1f69e8b 100644 --- a/interfaces/db_tables.toml +++ b/interfaces/db_tables.toml @@ -42,6 +42,7 @@ SyncStageUnwind = {} CliqueSeparate = {} CliqueSnapshot = {} CliqueLastSnapshot = {} +ParliaSnapshot = {} TxSender = {} LastBlock = {} Migration = {} diff --git a/kv/tables.go b/kv/tables.go index 1948d64ef..ce2e312ea 100644 --- a/kv/tables.go +++ b/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,