mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 02:49:55 +00:00
fix bootnodes
This commit is contained in:
@ -199,12 +199,11 @@ impl HlNetworkBuilder {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let network_builder = network_builder
|
let network_builder = network_builder
|
||||||
// .boot_nodes(boot_nodes())
|
.boot_nodes(boot_nodes())
|
||||||
.set_head(ctx.head())
|
.set_head(ctx.head())
|
||||||
// .with_pow()
|
|
||||||
.block_import(Box::new(HlBlockImport::new(handle)));
|
.block_import(Box::new(HlBlockImport::new(handle)));
|
||||||
// .discovery(discv4)
|
// .discovery(discv4)
|
||||||
// .eth_rlpx_handshake(Arc::new(HlHandshake::default()));
|
// .eth_rlpx_handshake(Arc::new(HlHandshake::default()));
|
||||||
|
|
||||||
let network_config = ctx.build_network_config(network_builder);
|
let network_config = ctx.build_network_config(network_builder);
|
||||||
|
|
||||||
@ -240,15 +239,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// HL mainnet bootnodes <https://github.com/bnb-chain/hl/blob/master/params/bootnodes.go#L23>
|
/// HL mainnet bootnodes <https://github.com/bnb-chain/hl/blob/master/params/bootnodes.go#L23>
|
||||||
static BOOTNODES : [&str; 6] = [
|
static BOOTNODES: [&str; 0] = [];
|
||||||
"enode://433c8bfdf53a3e2268ccb1b829e47f629793291cbddf0c76ae626da802f90532251fc558e2e0d10d6725e759088439bf1cd4714716b03a259a35d4b2e4acfa7f@52.69.102.73:30311",
|
|
||||||
"enode://571bee8fb902a625942f10a770ccf727ae2ba1bab2a2b64e121594a99c9437317f6166a395670a00b7d93647eacafe598b6bbcef15b40b6d1a10243865a3e80f@35.73.84.120:30311",
|
|
||||||
"enode://fac42fb0ba082b7d1eebded216db42161163d42e4f52c9e47716946d64468a62da4ba0b1cac0df5e8bf1e5284861d757339751c33d51dfef318be5168803d0b5@18.203.152.54:30311",
|
|
||||||
"enode://3063d1c9e1b824cfbb7c7b6abafa34faec6bb4e7e06941d218d760acdd7963b274278c5c3e63914bd6d1b58504c59ec5522c56f883baceb8538674b92da48a96@34.250.32.100:30311",
|
|
||||||
"enode://ad78c64a4ade83692488aa42e4c94084516e555d3f340d9802c2bf106a3df8868bc46eae083d2de4018f40e8d9a9952c32a0943cd68855a9bc9fd07aac982a6d@34.204.214.24:30311",
|
|
||||||
"enode://5db798deb67df75d073f8e2953dad283148133acb520625ea804c9c4ad09a35f13592a762d8f89056248f3889f6dcc33490c145774ea4ff2966982294909b37a@107.20.191.97:30311",
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
pub fn boot_nodes() -> Vec<NodeRecord> {
|
pub fn boot_nodes() -> Vec<NodeRecord> {
|
||||||
BOOTNODES[..].iter().map(|s| s.parse().unwrap()).collect()
|
BOOTNODES[..].iter().map(|s| s.parse().unwrap()).collect()
|
||||||
|
|||||||
Reference in New Issue
Block a user