From c4c7e947fcf7d11e8a59ec6e7996fa02b81d60ac Mon Sep 17 00:00:00 2001 From: Rootul P Date: Mon, 30 Oct 2023 11:54:04 +0100 Subject: [PATCH] feat(addrbook): skip peers with errors (#2783) Closes https://github.com/celestiaorg/celestia-app/issues/2784 Part of https://github.com/celestiaorg/networks/issues/513 --- cmd/celestia-appd/cmd/addrbook.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/celestia-appd/cmd/addrbook.go b/cmd/celestia-appd/cmd/addrbook.go index f363ed3626..296b72e152 100644 --- a/cmd/celestia-appd/cmd/addrbook.go +++ b/cmd/celestia-appd/cmd/addrbook.go @@ -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 } }