diff --git a/storage/blockchain/src/ops/block.rs b/storage/blockchain/src/ops/block.rs index 362b82a..d4ab1dd 100644 --- a/storage/blockchain/src/ops/block.rs +++ b/storage/blockchain/src/ops/block.rs @@ -274,7 +274,7 @@ pub fn get_block_complete_entry_from_height( tables: &impl TablesIter, ) -> Result { let (block_blob, miner_tx_idx, numb_non_miner_txs) = - get_block_blob_with_tx_indexes(&block_height, tables)?; + get_block_blob_with_tx_indexes(block_height, tables)?; let first_tx_idx = miner_tx_idx + 1; diff --git a/storage/blockchain/src/service/read.rs b/storage/blockchain/src/service/read.rs index 67a0cd4..069a7d0 100644 --- a/storage/blockchain/src/service/read.rs +++ b/storage/blockchain/src/service/read.rs @@ -264,8 +264,7 @@ fn block_complete_entries_by_height( .map(|height| { let tx_ro = tx_ro.get_or_try(|| env_inner.tx_ro())?; let tables = get_tables!(env_inner, tx_ro, tables)?.as_ref(); - - Ok(get_block_complete_entry_from_height(&height, tables)?) + get_block_complete_entry_from_height(&height, tables) }) .collect::>()?;