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

An internal trait that can be implemented by test cases to override the full node config before the chain gets initialized.

The config is in the dynamic-typed toml::Value format, as we do not want to model the full format of the node config in Rust. Test authors can use the helper methods in chain::config to modify common config fields.

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_node_config(&self, config: &mut Value) -> Result<(), Error>

Modify the full node config

Implementors§