/// Returns a list of DNS seeds for finding initial nodes
Returns a list of DNS seeds for finding initial nodes
Returns a list of DNS seeds for finding initial nodes
pub fn seeds(&self) -> Vec<String> {
        match self {
            Network::Mainnet => vec![
                "seed.bitcoinabc.org".to_string(),
                "seed-abc.bitcoinforks.org".to_string(),
                "btccash-seeder.bitcoinunlimited.info".to_string(),
                "seed.bitprim.org".to_string(),
                "seed.deadalnix.me".to_string(),
                "seeder.criptolayer.net".to_string(),
            ],
            Network::Testnet => vec![
                "testnet-seed.bitcoinabc.org".to_string(),
                "testnet-seed-abc.bitcoinforks.org".to_string(),
                "testnet-seed.bitprim.org".to_string(),
                "testnet-seed.deadalnix.me".to_string(),
                "testnet-seeder.criptolayer.net".to_string(),
            ],
            // seed nodes which actually can return the ips of real nodes.
            // but its not implemented yet, so just return name for localhost here
            // and add some parsing for enode:// format.
            Network::Regtest    => vec!["localhost".to_string()],
            Network::Ethereum   => vec!["localhost".to_string()],
            Network::BsvMainnet => vec!["localhost".to_string()], // define correct ones
            Network::BsvRegtest => vec!["localhost".to_string()],
        }
    }
pub fn seeds ( & self ) -> Vec < String > { match self { Network :: Mainnet => vec ! [ " " to_string ( ) " " to_string ( ) " " to_string ( ) " " to_string ( ) " " to_string ( ) " " to_string ( ) ] , Network :: Testnet => vec ! [ " " to_string ( ) " " to_string ( ) " " to_string ( ) " " to_string ( ) " " to_string ( ) ] , // seed nodes which actually can return the ips of real nodes. // but its not implemented yet, so just return name for localhost here // and add some parsing for enode:// format. Network :: Regtest => vec ! [ " " to_string ( ) ] , Network :: Ethereum => vec ! [ " " to_string ( ) ] , Network :: BsvMainnet => vec ! [ " " to_string ( ) ] , // define correct ones Network :: BsvRegtest => vec ! [ " " to_string ( ) ] , } }
Returns a list of DNS seeds for finding initial nodes
Returns a list of DNS seeds for finding initial nodes
&self