Browse Source

added banned address error

pull/4548/head
Callum Michael Waters 5 years ago
parent
commit
65d86bcad1
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      p2p/pex/errors.go

+ 8
- 0
p2p/pex/errors.go View File

@ -63,3 +63,11 @@ type ErrAddrBookInvalidAddr struct {
func (err ErrAddrBookInvalidAddr) Error() string {
return fmt.Sprintf("Cannot add invalid address %v: %v", err.Addr, err.AddrErr)
}
type ErrAddressBanned struct {
Addr *p2p.NetAddress
}
func (err ErrAddressBanned) Error() string {
return fmt.Sprintf("Address: %v is currently banned", err.Addr)
}

Loading…
Cancel
Save