Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bins/revme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository.workspace = true

[dependencies]
# revm
revm = { workspace = true, features = ["std", "hashbrown", "c-kzg", "blst"] }
revm = { workspace = true, features = ["std", "hashbrown", "c-kzg", "blst", "serde-json"] }
primitives.workspace = true
database.workspace = true
database-interface.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/context/interface/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub use crate::journaled_state::StateLoad;
use crate::{Block, Cfg, Database, Journal, Transaction};
use crate::{Block, Cfg, Database, JournalTr, Transaction};
use auto_impl::auto_impl;
use primitives::U256;

Expand All @@ -9,7 +9,7 @@ pub trait ContextTr {
type Tx: Transaction;
type Cfg: Cfg;
type Db: Database;
type Journal: Journal<Database = Self::Db>;
type Journal: JournalTr<Database = Self::Db>;
type Chain;

fn tx(&self) -> &Self::Tx;
Expand Down
4 changes: 2 additions & 2 deletions crates/context/interface/src/journaled_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use state::{
Account, Bytecode,
};

pub trait Journal {
pub trait JournalTr {
type Database: Database;
type FinalOutput;

Expand Down Expand Up @@ -177,7 +177,7 @@ pub trait Journal {

/// Does cleanup and returns modified state.
///
/// This resets the [Journal] to its initial state.
/// This resets the [JournalTr] to its initial state.
fn finalize(&mut self) -> Self::FinalOutput;
}

Expand Down
2 changes: 1 addition & 1 deletion crates/context/interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ pub use block::Block;
pub use cfg::{Cfg, CreateScheme, TransactTo};
pub use context::ContextTr;
pub use database_interface::{DBErrorMarker, Database};
pub use journaled_state::Journal;
pub use journaled_state::JournalTr;
pub use transaction::{Transaction, TransactionType};
18 changes: 9 additions & 9 deletions crates/context/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{block::BlockEnv, cfg::CfgEnv, journaled_state::JournaledState, tx::TxEnv};
use context_interface::{Block, Cfg, ContextTr, Journal, Transaction};
use crate::{block::BlockEnv, cfg::CfgEnv, journaled_state::Journal, tx::TxEnv};
use context_interface::{Block, Cfg, ContextTr, JournalTr, Transaction};
use database_interface::{Database, EmptyDB};
use derive_where::derive_where;
use specification::hardfork::SpecId;
Expand All @@ -11,7 +11,7 @@ pub struct Context<
TX = TxEnv,
CFG = CfgEnv,
DB: Database = EmptyDB,
JOURNAL: Journal<Database = DB> = JournaledState<DB>,
JOURNAL: JournalTr<Database = DB> = Journal<DB>,
CHAIN = (),
> {
/// Block information.
Expand All @@ -33,7 +33,7 @@ impl<
TX: Transaction,
DB: Database,
CFG: Cfg,
JOURNAL: Journal<Database = DB>,
JOURNAL: JournalTr<Database = DB>,
CHAIN,
> ContextTr for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN>
{
Expand Down Expand Up @@ -91,7 +91,7 @@ impl<
BLOCK: Block + Default,
TX: Transaction + Default,
DB: Database,
JOURNAL: Journal<Database = DB>,
JOURNAL: JournalTr<Database = DB>,
CHAIN: Default,
> Context<BLOCK, TX, CfgEnv, DB, JOURNAL, CHAIN>
{
Expand All @@ -118,9 +118,9 @@ where
TX: Transaction,
CFG: Cfg,
DB: Database,
JOURNAL: Journal<Database = DB>,
JOURNAL: JournalTr<Database = DB>,
{
pub fn with_new_journal<OJOURNAL: Journal<Database = DB>>(
pub fn with_new_journal<OJOURNAL: JournalTr<Database = DB>>(
self,
mut journal: OJOURNAL,
) -> Context<BLOCK, TX, CFG, DB, OJOURNAL, CHAIN> {
Expand All @@ -139,9 +139,9 @@ where
pub fn with_db<ODB: Database>(
self,
db: ODB,
) -> Context<BLOCK, TX, CFG, ODB, JournaledState<ODB>, CHAIN> {
) -> Context<BLOCK, TX, CFG, ODB, Journal<ODB>, CHAIN> {
let spec = self.cfg.spec().into();
let mut journaled_state = JournaledState::new(spec, db);
let mut journaled_state = Journal::new(spec, db);
journaled_state.set_spec_id(spec);
Context {
tx: self.tx,
Expand Down
35 changes: 0 additions & 35 deletions crates/context/src/journal_init.rs

This file was deleted.

Loading
Loading