diff --git a/beacon-chain/db/kv/kv.go b/beacon-chain/db/kv/kv.go index 72d31927be17..2da41fe9847a 100644 --- a/beacon-chain/db/kv/kv.go +++ b/beacon-chain/db/kv/kv.go @@ -100,37 +100,24 @@ func StoreDatafilePath(dirPath string) string { } var Buckets = [][]byte{ - attestationsBucket, blocksBucket, stateBucket, - proposerSlashingsBucket, - attesterSlashingsBucket, - voluntaryExitsBucket, chainMetadataBucket, checkpointBucket, powchainBucket, stateSummaryBucket, stateValidatorsBucket, // Indices buckets. - attestationHeadBlockRootBucket, - attestationSourceRootIndicesBucket, - attestationSourceEpochIndicesBucket, - attestationTargetRootIndicesBucket, - attestationTargetEpochIndicesBucket, blockSlotIndicesBucket, stateSlotIndicesBucket, blockParentRootIndicesBucket, finalizedBlockRootsIndexBucket, blockRootValidatorHashesBucket, - // State management service bucket. - newStateServiceCompatibleBucket, // Migrations migrationsBucket, feeRecipientBucket, registrationBucket, - - blobsBucket, } // KVStoreOption is a functional option that modifies a kv.Store. diff --git a/beacon-chain/db/kv/schema.go b/beacon-chain/db/kv/schema.go index f0cfff112277..7862bcea7d7b 100644 --- a/beacon-chain/db/kv/schema.go +++ b/beacon-chain/db/kv/schema.go @@ -7,20 +7,15 @@ package kv // it easy to scan for keys that have a certain shard number as a prefix and return those // corresponding attestations. var ( - attestationsBucket = []byte("attestations") - blobsBucket = []byte("blobs") - blocksBucket = []byte("blocks") - stateBucket = []byte("state") - stateSummaryBucket = []byte("state-summary") - proposerSlashingsBucket = []byte("proposer-slashings") - attesterSlashingsBucket = []byte("attester-slashings") - voluntaryExitsBucket = []byte("voluntary-exits") - chainMetadataBucket = []byte("chain-metadata") - checkpointBucket = []byte("check-point") - powchainBucket = []byte("powchain") - stateValidatorsBucket = []byte("state-validators") - feeRecipientBucket = []byte("fee-recipient") - registrationBucket = []byte("registration") + blocksBucket = []byte("blocks") + stateBucket = []byte("state") + stateSummaryBucket = []byte("state-summary") + chainMetadataBucket = []byte("chain-metadata") + checkpointBucket = []byte("check-point") + powchainBucket = []byte("powchain") + stateValidatorsBucket = []byte("state-validators") + feeRecipientBucket = []byte("fee-recipient") + registrationBucket = []byte("registration") // Deprecated: This bucket was migrated in PR 6461. Do not use, except for migrations. slotsHasObjectBucket = []byte("slots-has-objects") @@ -28,16 +23,11 @@ var ( archivedRootBucket = []byte("archived-index-root") // Key indices buckets. - blockParentRootIndicesBucket = []byte("block-parent-root-indices") - blockSlotIndicesBucket = []byte("block-slot-indices") - stateSlotIndicesBucket = []byte("state-slot-indices") - attestationHeadBlockRootBucket = []byte("attestation-head-block-root-indices") - attestationSourceRootIndicesBucket = []byte("attestation-source-root-indices") - attestationSourceEpochIndicesBucket = []byte("attestation-source-epoch-indices") - attestationTargetRootIndicesBucket = []byte("attestation-target-root-indices") - attestationTargetEpochIndicesBucket = []byte("attestation-target-epoch-indices") - finalizedBlockRootsIndexBucket = []byte("finalized-block-roots-index") - blockRootValidatorHashesBucket = []byte("block-root-validator-hashes") + blockParentRootIndicesBucket = []byte("block-parent-root-indices") + blockSlotIndicesBucket = []byte("block-slot-indices") + stateSlotIndicesBucket = []byte("state-slot-indices") + finalizedBlockRootsIndexBucket = []byte("finalized-block-roots-index") + blockRootValidatorHashesBucket = []byte("block-root-validator-hashes") // Specific item keys. headBlockRootKey = []byte("head-root") @@ -69,9 +59,6 @@ var ( // Deprecated: This index key was migrated in PR 6461. Do not use, except for migrations. savedStateSlotsKey = []byte("saved-state-slots") - // New state management service compatibility bucket. - newStateServiceCompatibleBucket = []byte("new-state-compatible") - // Migrations migrationsBucket = []byte("migrations") )