Skip to content

Commit

Permalink
feat: get peer addr from addrbook
Browse files Browse the repository at this point in the history
  • Loading branch information
cody committed May 24, 2024
1 parent 14a123f commit 4a3b040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/node/peering.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
// PeerWithLastConn try to connect to last peers
func PeerWithLastConn() fx.Option {
return fx.Invoke(func(host host.Host, cfg *config.Config) {
peerIds := host.Peerstore().Peers()
peerIds := host.Peerstore().PeersWithAddrs()

bootstrap, err := cfg.BootstrapPeers()
if err != nil {
Expand Down

0 comments on commit 4a3b040

Please sign in to comment.