Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
1543daf
Renamed and improved PeerConnection API
ElFantasma Oct 6, 2025
a17e46d
Renamed and improved PeerConnection and PeerTable
ElFantasma Oct 6, 2025
c5561df
Using oneshot channels for request/responses
ElFantasma Oct 7, 2025
b0da690
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 7, 2025
0d06ace
Post merge fix
ElFantasma Oct 7, 2025
c3f712d
Divided outgoing messages in messages and requests
ElFantasma Oct 7, 2025
6903bba
Removed unused PeerChannels
ElFantasma Oct 7, 2025
c2bb5f9
Moved timeout handling on peer requests to PeerConnection module
ElFantasma Oct 8, 2025
6e5740f
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 8, 2025
f48eb31
Centralized request handling to countabilize inflight requests
ElFantasma Oct 8, 2025
799e73d
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 8, 2025
f4fc12a
Dirty commit to check balancing equally the load between all peers
ElFantasma Oct 8, 2025
c5cfbad
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 8, 2025
c60c01e
Removed mark_in_use and free_peer functionality
ElFantasma Oct 8, 2025
085522c
Extremely simple balancing function
ElFantasma Oct 8, 2025
7aa23c6
Correct client id in log warning
ElFantasma Oct 9, 2025
7bda7e6
Added peer weight function, and improved logging
ElFantasma Oct 9, 2025
07288c5
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 9, 2025
9020451
Removed info being logged in prune function
ElFantasma Oct 9, 2025
10426a9
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 9, 2025
41ee251
Limit max amount of concurrent requests per peer
ElFantasma Oct 9, 2025
e15935e
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 9, 2025
9bb44c8
Limit max amount of concurrent requests per peer
ElFantasma Oct 9, 2025
84b82fd
Incremented timeout limit for peer requests
ElFantasma Oct 9, 2025
93f5205
Removed unneeded guard on import
ElFantasma Oct 11, 2025
adf0462
Updated Cargo for L2 TDX
ElFantasma Oct 13, 2025
e2dd003
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 13, 2025
107068a
Added comment to weighting function
ElFantasma Oct 13, 2025
387ced0
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 13, 2025
f67c045
Merge branch 'main' into p2p_multiplex
ElFantasma Oct 13, 2025
debda38
Merge branch 'main' into p2p_multiplex
jrchatruc Oct 14, 2025
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
200 changes: 100 additions & 100 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ url = { version = "2.5.4", features = ["serde"] }
kzg-rs = "0.2.6"
libsql = "0.9.10"
futures = "0.3.31"
spawned-concurrency = "0.4.0"
spawned-rt = "0.4.0"
spawned-concurrency = "0.4.1"
spawned-rt = "0.4.1"
lambdaworks-crypto = "0.11.0"
tui-logger = { version = "0.17.3", features = ["tracing-support"] }
crossbeam = "0.8.4"
Expand Down
4 changes: 2 additions & 2 deletions cmd/ethrex/ethrex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use ethrex::{
initializers::{init_l1, init_tracing},
utils::{NodeConfigFile, get_client_version, store_node_config_file},
};
use ethrex_p2p::{discv4::peer_table::PeerTableHandle, types::NodeRecord};
use ethrex_p2p::{discv4::peer_table::PeerTable, types::NodeRecord};
use std::{path::Path, sync::Arc, time::Duration};
use tokio::{
signal::unix::{SignalKind, signal},
Expand Down Expand Up @@ -35,7 +35,7 @@ pub static malloc_conf: &[u8] = b"prof:true,prof_active:true,lg_prof_sample:19\0
async fn server_shutdown(
datadir: &Path,
cancel_token: &CancellationToken,
peer_table: PeerTableHandle,
peer_table: PeerTable,
local_node_record: Arc<Mutex<NodeRecord>>,
) {
info!("Server shut down started...");
Expand Down
4 changes: 2 additions & 2 deletions cmd/ethrex/initializers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use ethrex_config::networks::Network;

use ethrex_metrics::profiling::{FunctionProfilingLayer, initialize_block_processing_profile};
use ethrex_p2p::{
discv4::peer_table::{PeerTable, PeerTableHandle},
discv4::peer_table::PeerTable,
network::P2PContext,
peer_handler::PeerHandler,
rlpx::l2::l2_connection::P2PBasedContext,
Expand Down Expand Up @@ -390,7 +390,7 @@ pub async fn init_l1(
) -> eyre::Result<(
PathBuf,
CancellationToken,
PeerTableHandle,
PeerTable,
Arc<Mutex<NodeRecord>>,
)> {
let datadir = &opts.datadir;
Expand Down
4 changes: 2 additions & 2 deletions cmd/ethrex/l2/initializers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use ethrex_blockchain::{Blockchain, BlockchainType};
use ethrex_common::{Address, types::DEFAULT_BUILDER_GAS_CEIL};
use ethrex_l2::SequencerConfig;
use ethrex_p2p::{
discv4::peer_table::{PeerTable, PeerTableHandle},
discv4::peer_table::PeerTable,
peer_handler::PeerHandler,
rlpx::l2::l2_connection::P2PBasedContext,
sync_manager::SyncManager,
Expand All @@ -31,7 +31,7 @@ use tui_logger::{LevelFilter, TuiTracingSubscriberLayer};
async fn init_rpc_api(
opts: &L1Options,
l2_opts: &L2Options,
peer_table: PeerTableHandle,
peer_table: PeerTable,
local_p2p_node: Node,
local_node_record: NodeRecord,
store: Store,
Expand Down
4 changes: 2 additions & 2 deletions cmd/ethrex/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use bytes::Bytes;
use directories::ProjectDirs;
use ethrex_common::types::{Block, Genesis};
use ethrex_p2p::{
discv4::peer_table::PeerTableHandle,
discv4::peer_table::PeerTable,
sync::SyncMode,
types::{Node, NodeRecord},
};
Expand All @@ -26,7 +26,7 @@ pub struct NodeConfigFile {
}

impl NodeConfigFile {
pub async fn new(mut peer_table: PeerTableHandle, node_record: NodeRecord) -> Self {
pub async fn new(mut peer_table: PeerTable, node_record: NodeRecord) -> Self {
let connected_peers = peer_table.get_connected_nodes().await.unwrap_or(Vec::new());

NodeConfigFile {
Expand Down
22 changes: 13 additions & 9 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.

Loading