prysm-pulse/validator/db/kv/schema.go
Josh Yudaken f0eb843138
Graffiti ordered index (#8482)
* Added ordered option to graffiti file

* Updated validator to use Ordered graffiti

* Track graffiti ordered index in db

* Update `ordered` to only emit each graffiti once

Co-authored-by: pinglamb <pinglambs@gmail.com>
2021-02-24 22:50:47 +00:00

41 lines
1.5 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")
)