This commit is contained in:
hinto.janai 2024-12-16 20:49:20 -05:00
parent 3664e2f794
commit f7f9063890
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
2 changed files with 2 additions and 3 deletions

View file

@ -274,7 +274,7 @@ pub fn get_block_complete_entry_from_height(
tables: &impl TablesIter,
) -> Result<BlockCompleteEntry, RuntimeError> {
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;

View file

@ -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::<DbResult<_>>()?;