bitcoin-banman 0.1.16-alpha.0

banman manages two related but distinct concepts: banning and discouragement
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
crate::ix!();

/**
  | @note
  | 
  | When adjusting this, update rpcnet:setban's
  | help ("24h")
  |
  */
pub const DEFAULT_MISBEHAVING_BANTIME: u32 = 60 * 60 * 24; // Default 24-hour ban

/**
  | How often to dump banned addresses/subnets
  | to disk.
  |
  */
pub const DUMP_BANS_INTERVAL: Duration = Duration::minutes(15);