Function bitceptron_regtest_utils::spawn_regtest
source · pub fn spawn_regtest(
bitcoind_path: &str,
bitcoin_conf_path: &str,
temp_path: &str,
regtest_confs: Vec<RegtestConf>,
respite_period_milisecs: u64,
connection_respite_factor: u64
) -> Result<Vec<Client>, RegtestUtilsError>Expand description
This function runs one or more regtest instances on your system.
Inputs are:
bitcoind_path: An absolute path to the bitcoind file on your local system. Include the file itself in the path.
bitcoin_conf_path: An absolute path to the bitcoin.conf file on your local system. Include the file itself in the path.
temp_path: An absolute path to a temp folder which is created by spawning regtest instances and removed by unwinding them.
regtest_confs: A vector of RegtestConfs. Each one will initiate a Regtest instance.
respite_period_milisecs: A grace period for bitcoind to initiate on the system.
connection_respite_factor: A multiplicative factor to the previous parameter which is to give time to regtest instances to connect to eachother.,