prysm-pulse/validator/db/kv/schema.go
Raul Jordan edb40ddea4
Add ValidatorDB Methods for Highest and Lowest Signed Proposals (#7957)
* add in highest and lowest signed proposal

* begin adding tests

* add in db tests

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-25 20:04:43 +00:00

22 lines
911 B
Go

package kv
var (
// Genesis information bucket key.
genesisInfoBucket = []byte("genesis-info-bucket")
// Genesis validators root key.
genesisValidatorsRootKey = []byte("genesis-val-root")
// Key to the lowest signed proposal in a validator bucket.
lowestSignedProposalKey = []byte("lowest-signed-proposal")
highestSignedProposalKey = []byte("highest-signed-proposal")
// Validator slashing protection from double proposals.
historicProposalsBucket = []byte("proposal-history-bucket")
// Validator slashing protection from double proposals.
newhistoricProposalsBucket = []byte("proposal-history-bucket-interchange")
// Validator slashing protection from slashable attestations.
historicAttestationsBucket = []byte("attestation-history-bucket")
// New Validator slashing protection from slashable attestations.
newHistoricAttestationsBucket = []byte("attestation-history-bucket-interchange")
)