prysm-pulse/validator/db/kv/schema.go
james-prysm d907cae595
persistent validator settings in validator client (#12354)
* WIP

* improving proposer settings store

* WIP persistent validator settings

* WIP persistent validator settings

* changing visibility level

* fixing some deepsource issues

* fixing more deepsource issues

* fixing json marshalling

* fix linting

* fixing tests

* fixing more tests

* fixing more tests

* fixing more tests

* fixing linting

* WIP fixing unit tests

* fixing remaining db tests

* converting json to protobuf

* fixing e2e

* k8s yaml library is used directly

* fixing linting

* fixing broken unit test

* reverting changes on e2e

* fixing linting

* fixing deepsource issue

* resolving some internal comments

* resolving some comments and adding more tests

* adding more unit tests

* gaz

* fixing flaking test

* fixing unit test contamination

* fixing deepsource issue

* resolving review item

* gaz
2023-05-16 14:08:49 -05:00

45 lines
1.7 KiB
Go

package kv
var (
// Genesis information bucket key.
genesisInfoBucket = []byte("genesis-info-bucket")
// Validator slashing protection from double proposals.
historicProposalsBucket = []byte("proposal-history-bucket-interchange")
deprecatedAttestationHistoryBucket = []byte("attestation-history-bucket-interchange")
// Buckets for lowest signed source and target epoch for individual validator.
lowestSignedSourceBucket = []byte("lowest-signed-source-bucket")
lowestSignedTargetBucket = []byte("lowest-signed-target-bucket")
// Lowest and highest signed proposals.
lowestSignedProposalsBucket = []byte("lowest-signed-proposals-bucket")
highestSignedProposalsBucket = []byte("highest-signed-proposals-bucket")
// Slashable public keys bucket.
slashablePublicKeysBucket = []byte("slashable-public-keys")
// Genesis validators root bucket key.
genesisValidatorsRootKey = []byte("genesis-val-root")
// Optimized slashing protection buckets and keys.
pubKeysBucket = []byte("pubkeys-bucket")
attestationSigningRootsBucket = []byte("att-signing-roots-bucket")
attestationSourceEpochsBucket = []byte("att-source-epochs-bucket")
attestationTargetEpochsBucket = []byte("att-target-epochs-bucket")
// Migrations
migrationsBucket = []byte("migrations")
// Graffiti
graffitiBucket = []byte("graffiti")
// Graffiti ordered index and hash keys
graffitiOrderedIndexKey = []byte("graffiti-ordered-index")
graffitiFileHashKey = []byte("graffiti-file-hash")
// ProposerSettings stores the encoded proposer settings file
proposerSettingsBucket = []byte("proposer-settings-bucket")
proposerSettingsKey = []byte("proposer-settings")
)