feat: make addons stateful (#11204)

Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
This commit is contained in:
Matthias Seitz
2024-10-04 08:34:37 +02:00
committed by GitHub
parent ab06997986
commit 84370b81d7
19 changed files with 75 additions and 25 deletions

View File

@ -77,7 +77,8 @@ impl NodeTypesWithEngine for EthereumNode {
}
/// Add-ons w.r.t. l1 ethereum.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
#[non_exhaustive]
pub struct EthereumAddOns;
impl<N: FullNodeComponents> NodeAddOns<N> for EthereumAddOns {
@ -104,6 +105,10 @@ where
fn components_builder(&self) -> Self::ComponentsBuilder {
Self::components()
}
fn add_ons(&self) -> Self::AddOns {
EthereumAddOns::default()
}
}
/// A regular ethereum evm and executor builder.