2020-06-27 02:37:43 +00:00
|
|
|
package kv
|
2020-01-08 18:16:17 +00:00
|
|
|
|
|
|
|
var (
|
2020-11-20 18:06:12 +00:00
|
|
|
// Genesis information bucket key.
|
|
|
|
genesisInfoBucket = []byte("genesis-info-bucket")
|
2020-11-25 20:04:43 +00:00
|
|
|
|
2020-01-08 18:16:17 +00:00
|
|
|
// Validator slashing protection from double proposals.
|
2021-01-15 21:35:21 +00:00
|
|
|
historicProposalsBucket = []byte("proposal-history-bucket-interchange")
|
|
|
|
deprecatedAttestationHistoryBucket = []byte("attestation-history-bucket-interchange")
|
2020-11-25 23:58:01 +00:00
|
|
|
|
2020-11-26 17:35:36 +00:00
|
|
|
// Buckets for lowest signed source and target epoch for individual validator.
|
|
|
|
lowestSignedSourceBucket = []byte("lowest-signed-source-bucket")
|
|
|
|
lowestSignedTargetBucket = []byte("lowest-signed-target-bucket")
|
2020-11-26 02:39:23 +00:00
|
|
|
|
2020-11-25 23:58:01 +00:00
|
|
|
// Lowest and highest signed proposals.
|
|
|
|
lowestSignedProposalsBucket = []byte("lowest-signed-proposals-bucket")
|
|
|
|
highestSignedProposalsBucket = []byte("highest-signed-proposals-bucket")
|
|
|
|
|
2021-01-22 23:12:22 +00:00
|
|
|
// Slashable public keys bucket.
|
|
|
|
slashablePublicKeysBucket = []byte("slashable-public-keys")
|
|
|
|
|
2020-11-25 23:58:01 +00:00
|
|
|
// Genesis validators root bucket key.
|
|
|
|
genesisValidatorsRootKey = []byte("genesis-val-root")
|
2020-12-16 03:33:04 +00:00
|
|
|
|
2021-01-06 03:04:46 +00:00
|
|
|
// Optimized slashing protection buckets and keys.
|
|
|
|
pubKeysBucket = []byte("pubkeys-bucket")
|
|
|
|
attestationSigningRootsBucket = []byte("att-signing-roots-bucket")
|
|
|
|
attestationSourceEpochsBucket = []byte("att-source-epochs-bucket")
|
2021-02-17 19:23:59 +00:00
|
|
|
attestationTargetEpochsBucket = []byte("att-target-epochs-bucket")
|
2021-01-06 03:04:46 +00:00
|
|
|
|
2020-12-16 03:33:04 +00:00
|
|
|
// Migrations
|
|
|
|
migrationsBucket = []byte("migrations")
|
2021-02-24 22:50:47 +00:00
|
|
|
|
|
|
|
// Graffiti
|
|
|
|
graffitiBucket = []byte("graffiti")
|
|
|
|
|
|
|
|
// Graffiti ordered index and hash keys
|
|
|
|
graffitiOrderedIndexKey = []byte("graffiti-ordered-index")
|
|
|
|
graffitiFileHashKey = []byte("graffiti-file-hash")
|
2023-05-16 19:08:49 +00:00
|
|
|
|
|
|
|
// ProposerSettings stores the encoded proposer settings file
|
|
|
|
proposerSettingsBucket = []byte("proposer-settings-bucket")
|
|
|
|
proposerSettingsKey = []byte("proposer-settings")
|
2020-01-08 18:16:17 +00:00
|
|
|
)
|