mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: make addons stateful (#11204)
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user