mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
528272fc66
* Add getters and setters for source and target epochs * Use the correct ImportStandardProtectionJSON * Add tests * Fix buckets * Fix source to target * Update validator/slashing-protection/local/standard-protection-format/import.go * Fix bytesutil.BytesToUint64BigEndian will return 0 if input is less than 8 bytes Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
27 lines
1.1 KiB
Go
27 lines
1.1 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")
|
|
// 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")
|
|
|
|
// Buckets for highest signed source and target epoch for individual validator.
|
|
highestSignedSourceBucket = []byte("highest-signed-source-bucket")
|
|
highestSignedTargetBucket = []byte("highest-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")
|
|
)
|