chore(cli): add default_client_version to rethCli (#11773)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Kunal Arora
2024-10-16 23:00:26 +05:30
committed by GitHub
parent 12cab204b5
commit 099987fc3d
3 changed files with 6 additions and 1 deletions

1
Cargo.lock generated
View File

@ -6551,6 +6551,7 @@ dependencies = [
"clap",
"eyre",
"reth-cli-runner",
"reth-db",
"serde_json",
"shellexpand",
]

View File

@ -14,7 +14,7 @@ workspace = true
[dependencies]
# reth
reth-cli-runner.workspace = true
reth-db.workspace = true
alloy-genesis.workspace = true
# misc

View File

@ -10,6 +10,7 @@
use clap::{Error, Parser};
use reth_cli_runner::CliRunner;
use reth_db::ClientVersion;
use std::{borrow::Cow, ffi::OsString};
/// The chainspec module defines the different chainspecs that can be used by the node.
@ -66,4 +67,7 @@ pub trait RethCli: Sized {
Ok(cli.with_runner(f))
}
/// The client version of the node.
fn client_version() -> ClientVersion;
}