Add the block information to the report

This commit is contained in:
Omar Abdulla
2025-10-22 15:36:42 +03:00
parent 3c10f5d2f3
commit 03b09d49ec
11 changed files with 90 additions and 53 deletions
@@ -10,8 +10,7 @@ use anyhow::Result;
use futures::{Stream, StreamExt};
use revive_dt_common::types::PlatformIdentifier;
use revive_dt_format::steps::StepPath;
use revive_dt_node_interaction::MinedBlockInformation;
use revive_dt_report::{ExecutionSpecificReporter, TransactionInformation};
use revive_dt_report::{ExecutionSpecificReporter, MinedBlockInformation, TransactionInformation};
use tokio::sync::{
RwLock,
mpsc::{UnboundedReceiver, UnboundedSender, unbounded_channel},
@@ -133,6 +132,9 @@ impl Watcher {
if block.ethereum_block_information.block_number <= ignore_block_before {
continue;
}
reporter
.report_block_mined_event(block.clone())
.expect("Can't fail");
if *all_transactions_submitted.read().await
&& watch_for_transaction_hashes.read().await.is_empty()