1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
crate::ix!();
#[derive(Default)]
pub struct NodeStats {
pub nodeid: NodeId,
pub n_services: ServiceFlags,
pub relay_txes: bool,
pub n_last_send: Option<OffsetDateTime>,
pub n_last_recv: Option<OffsetDateTime>,
pub n_last_tx_time: Option<OffsetDateTime>,
pub n_last_block_time: Option<OffsetDateTime>,
pub n_time_connected: Option<OffsetDateTime>,
pub n_time_offset: Option<Duration>,
pub addr_name: String,
pub n_version: i32,
pub clean_sub_ver: Arc<Mutex<String>>,
pub inbound: bool,
pub bip152_highbandwidth_to: bool,
pub bip152_highbandwidth_from: bool,
pub starting_height: i32,
pub n_send_bytes: u64,
pub map_send_bytes_per_msg_cmd: MapMsgCmdSize,
pub n_recv_bytes: u64,
pub map_recv_bytes_per_msg_cmd: MapMsgCmdSize,
pub permission_flags: NetPermissionFlags,
pub last_ping_time: Option<OffsetDateTime> ,
pub min_ping_time: Option<OffsetDateTime> ,
pub min_fee_filter: Amount,
pub addr_local: String,
pub addr: Address,
pub addr_bind: Address,
pub network: Network,
pub mapped_as: u32,
pub conn_type: ConnectionType,
}
pub type NodesStats = Vec<(NodeStats,bool,NodeStateStats)>;