From 7eaabeb0d47d6ca5fc36cc94b6247ad1f43656e0 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Wed, 24 May 2023 11:51:53 +0300 Subject: [PATCH] fix(transaction): tx iterator for block range (#2804) --- crates/storage/provider/src/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/storage/provider/src/transaction.rs b/crates/storage/provider/src/transaction.rs index 0598b2d64e..f205b8fd43 100644 --- a/crates/storage/provider/src/transaction.rs +++ b/crates/storage/provider/src/transaction.rs @@ -602,7 +602,7 @@ where // If this is the case then all of the blocks in the range are empty if last_transaction < first_transaction { - return Ok(Vec::new()) + return Ok(block_bodies.into_iter().map(|(n, _)| (n, Vec::new())).collect()) } // Get transactions and senders