prysm-pulse/validator/db/kv/schema.go
Raul Jordan 4f9752bb3e
Stop Early in Validator Surround Vote Local Protection (#8460)
* include migration and logic for stopping early in slashing protection checks

* remove commented code

* extract methods

* migration logic tested up

* migration up and down tests

* Update validator/db/kv/attester_protection.go

Co-authored-by: terence tsao <terence@prysmaticlabs.com>

* added in pruning and batched migrations

Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-02-17 19:23:59 +00:00

34 lines
1.3 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")
)