mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-23 01:27:58 +00:00
c2ba2cfed6
* Clean up the process flow for nodes * Cleanup some of the node tests to use shared nodes * Commit dev-genesis
27 lines
722 B
Rust
27 lines
722 B
Rust
//! This crate implements the testing nodes.
|
|
|
|
use alloy::genesis::Genesis;
|
|
use revive_dt_node_interaction::EthereumNode;
|
|
|
|
pub mod common;
|
|
pub mod constants;
|
|
pub mod geth;
|
|
pub mod process;
|
|
pub mod substrate;
|
|
|
|
/// An abstract interface for testing nodes.
|
|
pub trait Node: EthereumNode {
|
|
/// Spawns a node configured according to the genesis json.
|
|
///
|
|
/// Blocking until it's ready to accept transactions.
|
|
fn spawn(&mut self, genesis: Genesis) -> anyhow::Result<()>;
|
|
|
|
/// Prune the node instance and related data.
|
|
///
|
|
/// Blocking until it's completely stopped.
|
|
fn shutdown(&mut self) -> anyhow::Result<()>;
|
|
|
|
/// Returns the node version.
|
|
fn version(&self) -> anyhow::Result<String>;
|
|
}
|