brk_mempool 0.12.2

Bitcoin mempool monitor with fee estimation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::cycle::{AddrTransitions, TxAdded, TxRemoved};

/// Per-cycle accumulator threaded through the pipeline steps and
/// drained into the public [`crate::Cycle`] at end of cycle.
#[derive(Default)]
pub struct CycleDiff {
    pub added: Vec<TxAdded>,
    pub removed: Vec<TxRemoved>,
    pub addrs: AddrTransitions,
}

impl CycleDiff {
    pub fn membership_changed(&self) -> bool {
        !self.added.is_empty() || !self.removed.is_empty()
    }
}