This commit is contained in:
pgherveou
2025-08-21 14:54:01 +00:00
parent 16d526a9ab
commit 540a662f20
5 changed files with 26 additions and 12 deletions
+4
View File
@@ -499,6 +499,10 @@ impl ResolverApi for GethNode {
}
impl Node for GethNode {
fn name() -> &'static str {
"geth"
}
fn new(config: &Arguments) -> Self {
let geth_directory = config.directory().join(Self::BASE_DIRECTORY);
let id = NODE_COUNT.fetch_add(1, Ordering::SeqCst);
+9 -1
View File
@@ -105,7 +105,11 @@ impl KitchensinkNode {
.arg("export-chain-spec")
.arg("--chain")
.arg("dev")
.output()?;
.output()
.context(format!(
"Failed to export chain spec with {}",
self.substrate_binary.display()
))?;
if !output.status.success() {
anyhow::bail!(
@@ -515,6 +519,10 @@ impl ResolverApi for KitchensinkNode {
}
impl Node for KitchensinkNode {
fn name() -> &'static str {
"kitchensink"
}
fn new(config: &Arguments) -> Self {
let kitchensink_directory = config.directory().join(Self::BASE_DIRECTORY);
let id = NODE_COUNT.fetch_add(1, Ordering::SeqCst);
+3
View File
@@ -15,6 +15,9 @@ pub const GENESIS_JSON: &str = include_str!("../../../genesis.json");
/// An abstract interface for testing nodes.
pub trait Node: EthereumNode {
/// The name of the node implementation.
fn name() -> &'static str;
/// Create a new uninitialized instance.
fn new(config: &Arguments) -> Self;