mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-20 14:07:17 +08:00
fix: clear bootstrap node in testnet so we don't fail a test due to DNS not being available
This commit is contained in:
@@ -1849,7 +1849,7 @@ impl NodeConfig {
|
||||
let (pubkey_str, hostport) = (parts[0], parts[1]);
|
||||
let pubkey = Secp256k1PublicKey::from_hex(pubkey_str)
|
||||
.expect(&format!("Invalid public key '{}'", pubkey_str));
|
||||
debug!("Resolve '{}'", &hostport);
|
||||
info!("Resolve '{}'", &hostport);
|
||||
let sockaddr = hostport.to_socket_addrs().unwrap().next().unwrap();
|
||||
let neighbor = NodeConfig::default_neighbor(sockaddr, pubkey, chain_id, peer_version);
|
||||
self.bootstrap_node.push(neighbor);
|
||||
|
||||
Reference in New Issue
Block a user