Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix local seeds #244

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions crates/floresta-wire/src/p2p_wire/address_man.rs
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,15 @@ mod test {
let loc_adr_1 = LocalAddress::from(signet_address[random].address.clone());
assert_eq!(loc_adr_1.address, signet_address[random].address);
}

#[test]
fn test_fixed_peers() {
let _ = load_addresses_from_json("./src/p2p_wire/seeds/signet_seeds.json").unwrap();
let _ = load_addresses_from_json("./src/p2p_wire/seeds/mainnet_seeds.json").unwrap();
let _ = load_addresses_from_json("./src/p2p_wire/seeds/testnet_seeds.json").unwrap();
let _ = load_addresses_from_json("./src/p2p_wire/seeds/regtest_seeds.json").unwrap();
}

#[test]
fn test_address_man() {
let mut address_man = AddressMan::default();
Expand Down
11 changes: 0 additions & 11 deletions crates/floresta-wire/src/p2p_wire/seeds/mainnet_seeds.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,5 @@
},
"services": 50331657,
"port": 8333
},
{
"address": {
"V4": "[2804:4308:8c:6700:ee8e:b5ff:fe78:cbcf]"
},
"last_connected": 1678986166,
"state": {
"Tried": 0
},
"services": 73,
"port": 8333
}
]
Loading