Skip to content

Commit

Permalink
feat(exex): backfill on subscription with head (#10787)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Sep 17, 2024
1 parent 346eb30 commit 0cde072
Show file tree
Hide file tree
Showing 8 changed files with 507 additions and 56 deletions.
1 change: 1 addition & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
msrv = "1.81"
too-large-for-stack = 128
doc-valid-idents = ["P2P", "ExEx", "ExExes", "IPv4", "IPv6", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB"]
2 changes: 1 addition & 1 deletion crates/exex/exex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ workspace = true

[dependencies]
## reth
reth-chainspec.workspace = true
reth-config.workspace = true
reth-evm.workspace = true
reth-exex-types.workspace = true
Expand Down Expand Up @@ -40,7 +41,6 @@ metrics.workspace = true

[dev-dependencies]
reth-blockchain-tree.workspace = true
reth-chainspec.workspace = true
reth-db-api.workspace = true
reth-db-common.workspace = true
reth-evm-ethereum.workspace = true
Expand Down
9 changes: 7 additions & 2 deletions crates/exex/exex/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ pub struct ExExContext<Node: FullNodeComponents> {
///
/// Once an [`ExExNotification`](crate::ExExNotification) is sent over the channel, it is
/// considered delivered by the node.
pub notifications: ExExNotifications<Node>,
pub notifications: ExExNotifications<Node::Provider, Node::Executor>,

/// node components
pub components: Node,
}

impl<Node: FullNodeComponents> Debug for ExExContext<Node> {
impl<Node> Debug for ExExContext<Node>
where
Node: FullNodeComponents,
Node::Provider: Debug,
Node::Executor: Debug,
{
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("ExExContext")
.field("head", &self.head)
Expand Down
Loading

0 comments on commit 0cde072

Please sign in to comment.