mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 22:59:58 -07:00
18 lines
386 B
Rust
18 lines
386 B
Rust
use allocative::Allocative;
|
|
use bincode::{Decode, Encode};
|
|
|
|
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Copy, Encode, Decode, Allocative)]
|
|
pub struct BlockPath {
|
|
pub date_index: u16,
|
|
pub block_index: u16,
|
|
}
|
|
|
|
impl BlockPath {
|
|
pub fn new(date_index: u16, block_index: u16) -> Self {
|
|
Self {
|
|
date_index,
|
|
block_index,
|
|
}
|
|
}
|
|
}
|