zebra_rpc/methods/types/get_mempool_info.rs
1//! Types used in `getmempoolinfo` RPC method.
2
3/// Response to a `getmempoolinfo` RPC request.
4///
5/// See the notes for the [`Rpc::get_mempool_info` method].
6#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize)]
7pub struct GetMempoolInfoResponse {
8 /// Current tx count
9 pub size: usize,
10 /// Sum of all tx sizes
11 pub bytes: usize,
12 /// Total memory usage for the mempool
13 pub usage: usize,
14 /// Whether the node has finished notifying all listeners/tests about every transaction currently in the mempool.
15 /// This key is returned only when the node is running in regtest.
16 #[serde(skip_serializing_if = "Option::is_none")]
17 pub fully_notified: Option<bool>,
18}