prysm-pulse/validator/db/kv/schema.go
Raul Jordan c354871762
Optimal Local Slashing Protection DB Schema (#8211)
* add new approach for slashing protection

* benches

* tests passing

* gaz

* all tests passing

* comment
2021-01-06 03:04:46 +00:00

31 lines
1.2 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")
// New Validator slashing protection from slashable attestations.
historicAttestationsBucket = []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")
// 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")
// Migrations
migrationsBucket = []byte("migrations")
)