Skip to content

Commit 02364f3

Browse files
committed
Merge branch 'main' into sigp-audit-fixes
2 parents d4d5260 + 23098c4 commit 02364f3

39 files changed

Lines changed: 1105 additions & 194 deletions

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ targets.json
1717
logs
1818
.vscode/
1919
certs/
20+
21+
# Nix
22+
.direnv/
23+
.devenv/
24+
devenv.*
25+
devenv.lock
26+
.devenv.flake.nix
27+
.envrc

Cargo.lock

Lines changed: 116 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resolver = "2"
55
[workspace.package]
66
edition = "2024"
77
rust-version = "1.89"
8-
version = "0.9.2"
8+
version = "0.9.3"
99

1010
[workspace.dependencies]
1111
aes = "0.8"
@@ -53,6 +53,7 @@ lazy_static = "1.5.0"
5353
lh_eth2 = { package = "eth2", git = "https://github.com/sigp/lighthouse", tag = "v8.0.0-rc.0" }
5454
lh_eth2_keystore = { package = "eth2_keystore", git = "https://github.com/sigp/lighthouse", tag = "v8.0.0-rc.0" }
5555
lh_types = { package = "types", git = "https://github.com/sigp/lighthouse", tag = "v8.0.0-rc.0" }
56+
notify = "8.2.0"
5657
parking_lot = "0.12.3"
5758
pbkdf2 = "0.12.2"
5859
prometheus = "0.14.0"

bin/cli.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
use clap::Parser;
22

3-
/// Version string with a leading 'v'
4-
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
5-
6-
/// Subcommands and global arguments for the module
7-
#[derive(Parser, Debug)]
8-
#[command(name = "Commit-Boost CLI", version = VERSION, about, long_about = None)]
9-
struct Cli {}
10-
11-
/// Main entry point of the Commit-Boost CLI
123
#[tokio::main]
134
async fn main() -> eyre::Result<()> {
14-
// Parse the CLI arguments (currently only used for version info, more can be
15-
// added later)
16-
let _cli = Cli::parse();
17-
185
color_eyre::install()?;
19-
// set default backtrace unless provided
206

217
let args = cb_cli::Args::parse();
228

bin/pbs.rs

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,18 @@ use clap::Parser;
77
use eyre::Result;
88
use tracing::{error, info};
99

10-
/// Version string with a leading 'v'
11-
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
12-
13-
/// Subcommands and global arguments for the module
14-
#[derive(Parser, Debug)]
15-
#[command(name = "Commit-Boost PBS Service", version = VERSION, about, long_about = None)]
16-
struct Cli {}
17-
1810
#[tokio::main]
1911
async fn main() -> Result<()> {
20-
// Parse the CLI arguments (currently only used for version info, more can be
21-
// added later)
22-
let _cli = Cli::parse();
12+
let _args = cb_cli::PbsArgs::parse();
2313

2414
color_eyre::install()?;
2515

2616
let _guard = initialize_tracing_log(PBS_MODULE_NAME, LogsSettings::from_env_config()?);
2717

28-
let _args = cb_cli::PbsArgs::parse();
29-
30-
let pbs_config = load_pbs_config().await?;
18+
let (pbs_config, config_path) = load_pbs_config(None).await?;
3119

3220
PbsService::init_metrics(pbs_config.chain)?;
33-
let state = PbsState::new(pbs_config);
21+
let state = PbsState::new(pbs_config, config_path);
3422
let server = PbsService::run::<_, DefaultBuilderApi>(state);
3523

3624
tokio::select! {

bin/signer.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,14 @@ use clap::Parser;
77
use eyre::Result;
88
use tracing::{error, info};
99

10-
/// Version string with a leading 'v'
11-
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
12-
13-
/// Subcommands and global arguments for the module
14-
#[derive(Parser, Debug)]
15-
#[command(name = "Commit-Boost Signer Service", version = VERSION, about, long_about = None)]
16-
struct Cli {}
17-
1810
#[tokio::main]
1911
async fn main() -> Result<()> {
20-
// Parse the CLI arguments (currently only used for version info, more can be
21-
// added later)
22-
let _cli = Cli::parse();
12+
let _args = cb_cli::SignerArgs::parse();
2313

2414
color_eyre::install()?;
2515

2616
let _guard = initialize_tracing_log(SIGNER_MODULE_NAME, LogsSettings::from_env_config()?);
2717

28-
let _args = cb_cli::SignerArgs::parse();
29-
3018
let config = StartSignerConfig::load_from_env()?;
3119
let server = SigningService::run(config);
3220

0 commit comments

Comments
 (0)