pub trait NodeGenesisOverride {
    // Required method
    fn modify_genesis_file(&self, genesis: &mut Value) -> Result<(), Error>;
}
Expand description

An internal trait that can be implemented by test cases to override the genesis file before the chain gets initialized.

The config is in the dynamic-typed serde_json::Value format, as we do not want to model the full format of the genesis file in Rust.

This is called by RunBinaryNodeTest before the full nodes are initialized and started.

Test writers should implement TestOverrides for their test cases instead of implementing this trait directly.

Required Methods§

source

fn modify_genesis_file(&self, genesis: &mut Value) -> Result<(), Error>

Modify the genesis file

Implementors§