package octez-shell-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
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`