mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: make nodetypes stateless and move evm to components (#7992)
This commit is contained in:
@ -27,6 +27,15 @@ pub struct NoopBlockchainTree {
|
||||
pub canon_state_notification_sender: Option<CanonStateNotificationSender>,
|
||||
}
|
||||
|
||||
impl NoopBlockchainTree {
|
||||
/// Create a new NoopBlockchainTree with a canon state notification sender.
|
||||
pub fn with_canon_state_notifications(
|
||||
canon_state_notification_sender: CanonStateNotificationSender,
|
||||
) -> Self {
|
||||
Self { canon_state_notification_sender: Some(canon_state_notification_sender) }
|
||||
}
|
||||
}
|
||||
|
||||
impl BlockchainTreeEngine for NoopBlockchainTree {
|
||||
fn buffer_block(&self, _block: SealedBlockWithSenders) -> Result<(), InsertBlockError> {
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user