mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat: relax chainspec bounds on NodeBuilder and rpc types (#11160)
This commit is contained in:
@ -52,6 +52,9 @@ pub trait EthereumHardforks: Hardforks {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the final total difficulty if the Paris hardfork is known.
|
||||
fn get_final_paris_total_difficulty(&self) -> Option<U256>;
|
||||
|
||||
/// Returns the final total difficulty if the given block number is after the Paris hardfork.
|
||||
///
|
||||
/// Note: technically this would also be valid for the block before the paris upgrade, but this
|
||||
|
||||
@ -14,7 +14,7 @@ use alloc::{boxed::Box, vec::Vec};
|
||||
|
||||
/// Generic trait over a set of ordered hardforks
|
||||
#[auto_impl::auto_impl(&, Arc)]
|
||||
pub trait Hardforks: Default + Clone {
|
||||
pub trait Hardforks: Clone {
|
||||
/// Retrieves [`ForkCondition`] from `fork`. If `fork` is not present, returns
|
||||
/// [`ForkCondition::Never`].
|
||||
fn fork<H: Hardfork>(&self, fork: H) -> ForkCondition;
|
||||
|
||||
Reference in New Issue
Block a user