Skip to content

chore: update go-libp2p to v0.27.3#10671

Merged
magik6k merged 3 commits intomasterfrom
update-libp2p-v027
May 10, 2023
Merged

chore: update go-libp2p to v0.27.3#10671
magik6k merged 3 commits intomasterfrom
update-libp2p-v027

Conversation

@marten-seemann
Copy link
Copy Markdown
Contributor

Related Issues

Proposed Changes

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

@marten-seemann marten-seemann requested a review from a team as a code owner April 14, 2023 12:57
Comment thread cli/net.go
fmt.Println("AutoNAT status: ", i.Reachability.String())
if i.PublicAddr != "" {
fmt.Println("Public address: ", i.PublicAddr)
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this log (?) output. It was misleading to begin with, a libp2p node doesn't only have a single public address. The correct way to obtain the addresses is to use the Addrs method on the host.

Comment thread node/impl/net/net.go

var maddr string
if autonat.Status() == network.ReachabilityPublic {
pa, err := autonat.PublicAddr()
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We removed the PublicAddr method from AutoNAT.

Comment thread api/api_net.go

type NatInfo struct {
Reachability network.Reachability
PublicAddr string
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change this to an array, and populate this from Addrs? We have a bunch of tools / docs which want this API / CLI (mostly there some docs that refer to the Public address output from cli)

@jacobheun
Copy link
Copy Markdown
Contributor

What's the state of this? I was hoping to get go-fil-markets updated but it needs this update for libp2p.

@magik6k magik6k changed the title chore: update go-libp2p to v0.27.1 chore: update go-libp2p to v0.27.3 May 10, 2023
@magik6k magik6k merged commit 86723a3 into master May 10, 2023
@magik6k magik6k deleted the update-libp2p-v027 branch May 10, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants