Skip to content

Commit 184ba44

Browse files
committed
fixes
1 parent 48638c4 commit 184ba44

File tree

9 files changed

+45
-46
lines changed

9 files changed

+45
-46
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/consensus/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,3 @@ metrics.workspace = true
5959
[build-dependencies]
6060
vergen = { workspace = true, features = ["build", "cargo", "emit_and_set"] }
6161
vergen-git2.workspace = true
62-
63-
[dev-dependencies]
64-
rstest.workspace = true

crates/client/cli/src/p2p.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111
str::FromStr,
1212
};
1313

14-
use alloy_primitives::{b256, B256};
14+
use alloy_primitives::{B256, b256};
1515
use alloy_provider::Provider;
1616
use alloy_signer_local::PrivateKeySigner;
1717
use clap::Parser;
@@ -451,18 +451,18 @@ impl P2PArgs {
451451
let mut gossip_address = libp2p::Multiaddr::from(self.listen_ip);
452452
gossip_address.push(libp2p::multiaddr::Protocol::Tcp(self.listen_tcp_port));
453453

454-
let unsafe_block_signer = self
455-
.unsafe_block_signer(l2_chain_id, config, l1_rpc, genesis_signer)
456-
.await?;
457-
458-
let bootstore = if self.disable_bootstore {
459-
None
460-
} else {
461-
Some(self.bootstore.map_or(
462-
BootStoreFile::Default { chain_id: l2_chain_id },
463-
BootStoreFile::Custom,
464-
))
465-
};
454+
let unsafe_block_signer =
455+
self.unsafe_block_signer(l2_chain_id, config, l1_rpc, genesis_signer).await?;
456+
457+
let bootstore =
458+
if self.disable_bootstore {
459+
None
460+
} else {
461+
Some(self.bootstore.map_or(
462+
BootStoreFile::Default { chain_id: l2_chain_id },
463+
BootStoreFile::Custom,
464+
))
465+
};
466466

467467
let bootnodes = self
468468
.bootnodes

crates/client/cli/src/signer.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use std::{path::PathBuf, str::FromStr};
77

88
use alloy_primitives::{Address, B256};
9-
use alloy_signer::{k256::ecdsa, Signer};
9+
use alloy_signer::{Signer, k256::ecdsa};
1010
use alloy_signer_local::PrivateKeySigner;
1111
use clap::Parser;
1212
use kona_cli::SecretKeyLoader;
@@ -122,9 +122,8 @@ impl SignerArgs {
122122
let gossip_signer: Option<BlockSigner> = match (sequencer_key, self.config_remote()?) {
123123
(Some(_), Some(_)) => return Err(SignerArgsParseError::LocalAndRemoteSigner),
124124
(Some(key), None) => {
125-
let signer: BlockSigner = PrivateKeySigner::from_bytes(&key)?
126-
.with_chain_id(Some(l2_chain_id))
127-
.into();
125+
let signer: BlockSigner =
126+
PrivateKeySigner::from_bytes(&key)?.with_chain_id(Some(l2_chain_id)).into();
128127
Some(signer)
129128
}
130129
(None, Some(signer)) => Some(signer.into()),

crates/client/flashblocks/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ test-utils = [
1818
"dep:eyre",
1919
"reth-evm/test-utils",
2020
"reth-primitives/test-utils",
21+
"reth-chainspec/test-utils",
22+
"reth-provider/test-utils",
23+
"reth-revm/test-utils"
2124
]
2225

2326
[dependencies]

crates/client/node/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ test-utils = [
4444
"reth-optimism-node/test-utils",
4545
"reth-primitives-traits?/test-utils",
4646
"reth-provider/test-utils",
47+
"reth-chainspec?/test-utils",
48+
"reth-node-builder/test-utils"
4749
]
4850

4951
[dependencies]

crates/shared/cli-utils/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ mod styles;
2222
pub use styles::CliStyles;
2323

2424
mod logging;
25-
pub use logging::{FileLogConfig, LogConfig, LogRotation, StdoutLogConfig};
25+
pub use logging::{FileLogConfig, LogConfig, LogFormat, LogRotation, StdoutLogConfig};
2626

2727
mod tracing;
28-
pub use tracing::{LogFormat, init_test_tracing};
28+
pub use tracing::init_test_tracing;
2929

3030
mod version;
3131
pub use version::Version;

crates/shared/cli-utils/src/logging.rs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,27 @@ use clap::ValueEnum;
66
use serde::{Deserialize, Serialize};
77
use tracing::level_filters::LevelFilter;
88

9-
use crate::{LogArgs, LogFormat};
9+
use crate::LogArgs;
10+
11+
/// The format of the logs.
12+
#[derive(
13+
Default, Debug, Clone, Copy, PartialEq, Eq, Hash, clap::ValueEnum, Serialize, Deserialize,
14+
)]
15+
#[serde(rename_all = "lowercase")]
16+
#[clap(rename_all = "lowercase")]
17+
pub enum LogFormat {
18+
/// Full format (default).
19+
#[default]
20+
Full,
21+
/// JSON format.
22+
Json,
23+
/// Pretty format.
24+
Pretty,
25+
/// Compact format.
26+
Compact,
27+
/// Logfmt format.
28+
Logfmt,
29+
}
1030

1131
/// The rotation of the log files.
1232
#[derive(Debug, Clone, Serialize, Deserialize, ValueEnum, Default)]

crates/shared/cli-utils/src/tracing.rs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
use std::fmt;
44

5-
use serde::{Deserialize, Serialize};
65
use tracing_subscriber::{
76
EnvFilter, Layer,
87
fmt::{
@@ -14,27 +13,7 @@ use tracing_subscriber::{
1413
util::{SubscriberInitExt, TryInitError},
1514
};
1615

17-
use crate::{LogConfig, LogRotation};
18-
19-
/// The format of the logs.
20-
#[derive(
21-
Default, Debug, Clone, Copy, PartialEq, Eq, Hash, clap::ValueEnum, Serialize, Deserialize,
22-
)]
23-
#[serde(rename_all = "lowercase")]
24-
#[clap(rename_all = "lowercase")]
25-
pub enum LogFormat {
26-
/// Full format (default).
27-
#[default]
28-
Full,
29-
/// JSON format.
30-
Json,
31-
/// Pretty format.
32-
Pretty,
33-
/// Compact format.
34-
Compact,
35-
/// Logfmt format.
36-
Logfmt,
37-
}
16+
use crate::{LogConfig, LogFormat, LogRotation};
3817

3918
/// Custom logfmt formatter for tracing events.
4019
struct LogfmtFormatter;

0 commit comments

Comments
 (0)