mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 21:27:19 +00:00
a958dd246b
* de-normalize attestationDataRootsBucket to improve performace in CheckAttesterDoubleVotes * parallize processing of every attestation * fix double vote test case to take care of jumbled double votes due to parallel processing * remove attestationRecordsBucket totally and take care of pruning * missed out build file * fix review comments Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
16 lines
735 B
Go
16 lines
735 B
Go
package slasherkv
|
|
|
|
// The schema will define how to store and retrieve data from the db.
|
|
// we can prefix or suffix certain values such as `block` with attributes
|
|
// for prefix-wide scans across the underlying BoltDB buckets when filtering data.
|
|
// For example, we might store attestations as shard + attestation_root -> attestation, making
|
|
// it easy to scan for keys that have a certain shard number as a prefix and return those
|
|
// corresponding attestations.
|
|
var (
|
|
// Slasher buckets.
|
|
attestedEpochsByValidator = []byte("attested-epochs-by-validator")
|
|
attestationDataRootsBucket = []byte("attestation-data-roots")
|
|
proposalRecordsBucket = []byte("proposal-records")
|
|
slasherChunksBucket = []byte("slasher-chunks")
|
|
)
|