Skip to content

Commit

Permalink
feat(addrbook): skip peers with errors (#2783)
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp authored Oct 30, 2023
1 parent a856af5 commit c4c7e94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/celestia-appd/cmd/addrbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ func addrbookCommand() *cobra.Command {
}
address, err := p2p.NewNetAddressString(line)
if err != nil {
return err
fmt.Printf("Error parsing %s: %s\n", line, err)
continue
}
err = book.AddAddress(address, address)
if err != nil {
return err
fmt.Printf("Error adding %s: %s\n", address, err)
continue
}
}

Expand Down

0 comments on commit c4c7e94

Please sign in to comment.