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
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ tokio-util = { version = "0.7.15", features = ["rt"] }
jsonwebtoken = "9.3.0"
rand = "0.8.5"
reqwest = { version = "0.12.7", features = ["socks", "json"] }
rustc-hash = "2.1.1"
snap = "1.1.1"
secp256k1 = { version = "0.30.0", default-features = false, features = [
"global-context",
Expand Down
7 changes: 7 additions & 0 deletions crates/l2/prover/src/guest_program/src/risc0/Cargo.lock

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

7 changes: 7 additions & 0 deletions crates/l2/prover/src/guest_program/src/sp1/Cargo.lock

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

47 changes: 27 additions & 20 deletions crates/l2/tee/quote-gen/Cargo.lock

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

1 change: 1 addition & 0 deletions crates/storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ hex.workspace = true
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.117"
rocksdb = { workspace = true, optional = true }
rustc-hash.workspace = true
tokio = { workspace = true, optional = true, features = ["rt"] }
bincode = "1.3.3"

Expand Down
9 changes: 5 additions & 4 deletions crates/storage/trie_db/layering.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
use ethrex_common::H256;
use ethrex_rlp::decode::RLPDecode;
use std::{collections::HashMap, sync::Arc, sync::RwLock};
use rustc_hash::FxHashMap;
use std::{sync::Arc, sync::RwLock};

use ethrex_trie::{EMPTY_TRIE_HASH, Nibbles, Node, TrieDB, TrieError};

#[derive(Debug)]
struct TrieLayer {
nodes: HashMap<Vec<u8>, Vec<u8>>,
nodes: FxHashMap<Vec<u8>, Vec<u8>>,
parent: H256,
id: usize,
}
Expand All @@ -16,7 +17,7 @@ pub struct TrieLayerCache {
/// Monotonically increasing ID for layers, starting at 1.
/// TODO: this implementation panics on overflow
last_id: usize,
layers: HashMap<H256, TrieLayer>,
layers: FxHashMap<H256, TrieLayer>,
}

impl TrieLayerCache {
Expand Down Expand Up @@ -74,7 +75,7 @@ impl TrieLayerCache {
.or_insert_with(|| {
self.last_id += 1;
TrieLayer {
nodes: HashMap::new(),
nodes: FxHashMap::default(),
parent,
id: self.last_id,
}
Expand Down
Loading