bitcoin-index 0.1.16-alpha.0

abstractions for working with indices of blockchain data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
crate::ix!();

pub struct IndexSummary {
    name:              String,
    synced:            bool,
    best_block_height: i32,
}

impl IndexSummary {

    pub fn new(name: &str) -> Self {
        Self {
            name:              name.to_string(),
            synced:            false,
            best_block_height: 0,
        }
    }
}