Function exonum_btc_anchoring::gen_anchoring_testnet_config_with_rng
[−]
[src]
pub fn gen_anchoring_testnet_config_with_rng<R>(
client: &BitcoinRelay,
network: Network,
count: u8,
total_funds: u64,
rng: &mut R
) -> (AnchoringConfig, Vec<AnchoringNodeConfig>) where
R: Rng,
Generates testnet configuration by given rpc for given nodes amount using given random number generator.
Note: Bitcoin node that is used by rpc should have enough bitcoin amount to generate
funding transaction by given total_funds
.