urma_node/model.rs
1//! Shared local API models, with archive-only capabilities kept in this crate.
2pub use urma_node_client::model::*;
3
4/// A capability issued by this archive for a particular selected block.
5/// The epoch changes on a reorg; a worker cannot commit using an old ticket.
6#[derive(Clone, Copy, Debug)]
7pub struct ScanTicket {
8 pub(crate) generation: u64,
9 pub(crate) point: ChainPoint,
10}
11
12impl ScanTicket {
13 pub fn point(self) -> ChainPoint {
14 self.point
15 }
16}