mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: Eip1559 params in extradata (#11887)
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -38,7 +38,7 @@ use reth_primitives::{
|
||||
Header, TransactionSigned,
|
||||
};
|
||||
use reth_tracing::{RethTracer, Tracer};
|
||||
use std::sync::Arc;
|
||||
use std::{convert::Infallible, sync::Arc};
|
||||
|
||||
/// Custom EVM configuration
|
||||
#[derive(Debug, Clone)]
|
||||
@ -87,6 +87,7 @@ impl MyEvmConfig {
|
||||
|
||||
impl ConfigureEvmEnv for MyEvmConfig {
|
||||
type Header = Header;
|
||||
type Error = Infallible;
|
||||
|
||||
fn fill_tx_env(&self, tx_env: &mut TxEnv, transaction: &TransactionSigned, sender: Address) {
|
||||
self.inner.fill_tx_env(tx_env, transaction, sender);
|
||||
@ -115,7 +116,7 @@ impl ConfigureEvmEnv for MyEvmConfig {
|
||||
&self,
|
||||
parent: &Self::Header,
|
||||
attributes: NextBlockEnvAttributes,
|
||||
) -> (CfgEnvWithHandlerCfg, BlockEnv) {
|
||||
) -> Result<(CfgEnvWithHandlerCfg, BlockEnv), Self::Error> {
|
||||
self.inner.next_cfg_and_block_env(parent, attributes)
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ use reth_primitives::{
|
||||
};
|
||||
use reth_tracing::{RethTracer, Tracer};
|
||||
use schnellru::{ByLength, LruMap};
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
use std::{collections::HashMap, convert::Infallible, sync::Arc};
|
||||
|
||||
/// Type alias for the LRU cache used within the [`PrecompileCache`].
|
||||
type PrecompileLRUCache = LruMap<(Bytes, u64), PrecompileResult>;
|
||||
@ -147,6 +147,7 @@ impl StatefulPrecompileMut for WrappedPrecompile {
|
||||
|
||||
impl ConfigureEvmEnv for MyEvmConfig {
|
||||
type Header = Header;
|
||||
type Error = Infallible;
|
||||
|
||||
fn fill_tx_env(&self, tx_env: &mut TxEnv, transaction: &TransactionSigned, sender: Address) {
|
||||
self.inner.fill_tx_env(tx_env, transaction, sender)
|
||||
@ -175,7 +176,7 @@ impl ConfigureEvmEnv for MyEvmConfig {
|
||||
&self,
|
||||
parent: &Self::Header,
|
||||
attributes: NextBlockEnvAttributes,
|
||||
) -> (CfgEnvWithHandlerCfg, BlockEnv) {
|
||||
) -> Result<(CfgEnvWithHandlerCfg, BlockEnv), Self::Error> {
|
||||
self.inner.next_cfg_and_block_env(parent, attributes)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user