github.com/prysmaticlabs/prysm@v1.4.4/beacon-chain/db/slasherkv/schema.go (about)

     1  package slasherkv
     2  
     3  // The schema will define how to store and retrieve data from the db.
     4  // we can prefix or suffix certain values such as `block` with attributes
     5  // for prefix-wide scans across the underlying BoltDB buckets when filtering data.
     6  // For example, we might store attestations as shard + attestation_root -> attestation, making
     7  // it easy to scan for keys that have a certain shard number as a prefix and return those
     8  // corresponding attestations.
     9  var (
    10  	// Slasher buckets.
    11  	attestedEpochsByValidator  = []byte("attested-epochs-by-validator")
    12  	attestationRecordsBucket   = []byte("attestation-records")
    13  	attestationDataRootsBucket = []byte("attestation-data-roots")
    14  	proposalRecordsBucket      = []byte("proposal-records")
    15  	slasherChunksBucket        = []byte("slasher-chunks")
    16  )