chore(db): remove block numhash key (#1242)

This commit is contained in:
Roman Krasiuk
2023-02-10 23:43:00 +02:00
committed by GitHub
parent 23848df73a
commit 00a49f5ee7
20 changed files with 175 additions and 271 deletions

View File

@@ -8,12 +8,10 @@ pub enum Error {
BlockNumber { block_number: BlockNumber },
#[error("Block hash {block_hash:?} does not exist in Headers table")]
BlockHash { block_hash: BlockHash },
#[error("Block body not exists #{block_number} ({block_hash:?})")]
BlockBody { block_number: BlockNumber, block_hash: BlockHash },
#[error("Block body not exists #{block_number}")]
BlockBody { block_number: BlockNumber },
#[error("Block transition id does not exist for block #{block_number}")]
BlockTransition { block_number: BlockNumber },
#[error("Block number {block_number} from block hash #{block_hash} does not exist in canonical chain")]
BlockCanonical { block_number: BlockNumber, block_hash: BlockHash },
#[error("Block number {block_number} with hash #{received_hash:?} is not canonical block. Canonical block hash is #{expected_hash:?}")]
NonCanonicalBlock {
block_number: BlockNumber,