package octez-shell-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/octez-shell-libs.p2p/Tezos_p2p/P2p_acl/IPGreylist/index.html
Module P2p_acl.IPGreylist
Source
add t addr
adds addr
to the address greylist.
gc t
removes some address greylistings (the oldest have a higher probability to be removed, yet due to the underlying probabilistic structure, recent greylistings can be dropped).
mem t addr
tells if addr
is greylisted, but may return a false positive due to the underlying probabilistic structure.
fill_percentage t
returns the percentage (in the 0,1
interval) of bloom filter cells which are nonzero.
life_expectancy_histogram t
returns the life expectancy distribution of cells (measured in gc
calls) stored as an array: the value at index k
stores the number of cells that are k
calls to gc
away from being removed from the greylist.
list t
if list_not_reliable_since t
returns None
, returns the list of currently greylisted IPs. Else it return the list of all ips greylisted since `list_not_reliable_since`