bitcoin-epoch 0.1.18

RAII-style guard for using epoch-based graph traversal algorithms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// ---------------- [ File: bitcoin-epoch/src/marker.rs ]
crate::ix!();

/// Per‑transaction epoch marker.
#[derive(Getters, Builder, Default)]
#[getset(get = "pub")]
pub struct EpochMarker {
    marker: u64,
}

impl EpochMarker {
    /// Update the marker; crate‑internal.
    pub(crate) fn update(&mut self, value: u64) {
        self.marker = value;
    }
}