mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(exex): commit only notifications with unfinalized blocks to WAL (#11638)
This commit is contained in:
@ -9,7 +9,7 @@ use reth_evm::{
|
||||
metrics::ExecutorMetrics,
|
||||
};
|
||||
use reth_execution_types::{Chain, ExecutionOutcome};
|
||||
use reth_exex::{ExExManagerHandle, ExExNotification};
|
||||
use reth_exex::{ExExManagerHandle, ExExNotification, ExExNotificationSource};
|
||||
use reth_primitives::{Header, SealedHeader, StaticFileSegment};
|
||||
use reth_primitives_traits::format_gas_throughput;
|
||||
use reth_provider::{
|
||||
@ -389,9 +389,10 @@ where
|
||||
|
||||
// NOTE: We can ignore the error here, since an error means that the channel is closed,
|
||||
// which means the manager has died, which then in turn means the node is shutting down.
|
||||
let _ = self
|
||||
.exex_manager_handle
|
||||
.send(ExExNotification::ChainCommitted { new: Arc::new(chain) });
|
||||
let _ = self.exex_manager_handle.send(
|
||||
ExExNotificationSource::Pipeline,
|
||||
ExExNotification::ChainCommitted { new: Arc::new(chain) },
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@ -477,8 +478,10 @@ where
|
||||
|
||||
// NOTE: We can ignore the error here, since an error means that the channel is closed,
|
||||
// which means the manager has died, which then in turn means the node is shutting down.
|
||||
let _ =
|
||||
self.exex_manager_handle.send(ExExNotification::ChainReverted { old: Arc::new(chain) });
|
||||
let _ = self.exex_manager_handle.send(
|
||||
ExExNotificationSource::Pipeline,
|
||||
ExExNotification::ChainReverted { old: Arc::new(chain) },
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user