Module network

Module network 

Source
Expand description

Configuration for mainnet and testnet

§Examples

Iterate through seed nodes:

use bch::network::Network;

for (ip, port) in Network::Mainnet.seed_iter() {
    println!("Seed node {:?}:{}", ip, port);
}

Structs§

SeedIter
Iterates through DNS seeds semi-randomly

Enums§

Network
Network type