Skip to content

Commit

Permalink
fix: use core-test.fuellabs.net for dnsaddr resolution (#2214)
Browse files Browse the repository at this point in the history
## Linked Issues/PRs
<!-- List of related issues/PRs -->
- fixes #2212

## Description
<!-- List of detailed changes -->
Swaps out mainnet dnsaddr url for the one provided for testing.

## Checklist
- [x] ] Breaking changes are clearly marked as such in the PR
description and changelog
- [x] ] New behavior is reflected in tests
- [x] [The specification](https://github.com/FuelLabs/fuel-specs/)
matches the implemented behavior (link update PR if changes are needed)

### Before requesting review
- [x] I have reviewed the code myself
- [ ] I have created follow-up issues caused by this PR and linked them
here

### After merging, notify other teams

[Add or remove entries as needed]

- [ ] [Rust SDK](https://github.com/FuelLabs/fuels-rs/)
- [ ] [Sway compiler](https://github.com/FuelLabs/sway/)
- [ ] [Platform
documentation](https://github.com/FuelLabs/devrel-requests/issues/new?assignees=&labels=new+request&projects=&template=NEW-REQUEST.yml&title=%5BRequest%5D%3A+)
(for out-of-organization contributors, the person merging the PR will do
this)
- [ ] Someone else?

Co-authored-by: Green Baneling <XgreenX9999@gmail.com>
  • Loading branch information
rymnc and xgreenx authored Sep 18, 2024
1 parent b00bd0d commit 9f6f982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/services/p2p/src/dnsaddr_resolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ mod tests {
].iter().map(|s| s.parse().unwrap()).collect();

// when
// run a `dig +short txt _dnsaddr.mainnet.fuel.network` to get the TXT records
// run a `dig +short txt _dnsaddr.core-test.fuellabs.net` to get the TXT records
let multiaddrs = resolver
.lookup_dnsaddr("mainnet.fuel.network")
.lookup_dnsaddr("core-test.fuellabs.net")
.await
.unwrap();
// then
Expand Down

0 comments on commit 9f6f982

Please sign in to comment.