Versions in this module Expand all Collapse all v1 v1.0.0 Jan 21, 2020 Changes in this version + var ErrCorruptedStore = errors.New("corrupted ban store") + var ErrUnsupportedIP = errors.New("unsupported IP type") + func ParseIPNet(addr string, mask net.IPMask) (*net.IPNet, error) + type Reason uint8 + const ExceededBanThreshold + const InvalidFilterHeader + const InvalidFilterHeaderCheckpoint + const NoCompactFilters + func (r Reason) String() string + type Status struct + Banned bool + Expiration time.Time + Reason Reason + type Store interface + BanIPNet func(*net.IPNet, Reason, time.Duration) error + Status func(*net.IPNet) (Status, error) + func NewStore(db walletdb.DB) (Store, error)