mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-09 22:47:24 +00:00
added banned address error
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user