mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 22:59:58 -07:00
brk: first commit
This commit is contained in:
17
_src/structs/block_path.rs
Normal file
17
_src/structs/block_path.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
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,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user