Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: log enode #66

Merged
merged 1 commit into from
Oct 22, 2024
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.

2 changes: 1 addition & 1 deletion crates/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ reth-network-types.workspace = true
alloy-primitives.workspace = true

serde_json.workspace = true

tracing.workspace = true
eyre.workspace = true

[lints]
Expand Down
5 changes: 3 additions & 2 deletions crates/node/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::evm::OdysseyEvmConfig;
use reth_evm::execute::BasicBlockExecutorProvider;
use reth_network::{
transactions::{TransactionPropagationMode, TransactionsManagerConfig},
NetworkHandle, NetworkManager,
NetworkHandle, NetworkManager, PeersInfo,
};
use reth_network_types::ReputationChangeWeights;
use reth_node_api::{FullNodeTypes, NodeTypesWithEngine};
Expand All @@ -30,6 +30,7 @@ use reth_optimism_node::{
use reth_payload_builder::PayloadBuilderHandle;
use reth_transaction_pool::{SubPoolLimit, TransactionPool, TXPOOL_MAX_ACCOUNT_SLOTS_PER_SENDER};
use std::time::Duration;
use tracing::info;

/// Type configuration for a regular Odyssey node.
#[derive(Debug, Clone, Default)]
Expand Down Expand Up @@ -217,7 +218,7 @@ where
};
let network = NetworkManager::builder(network_config).await?;
let handle = ctx.start_network_with(network, pool, txconfig);

info!(target: "reth::cli", enode=%handle.local_node_record(), "P2P networking initialized");
Ok(handle)
}
}