mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
f0eb843138
* 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>
41 lines
1.5 KiB
Go
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")
|
|
)
|