Changeset View
Changeset View
Standalone View
Standalone View
chronik/chronik-indexer/src/indexer.rs
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
pub struct ChronikIndexer { | pub struct ChronikIndexer { | ||||
db: Db, | db: Db, | ||||
mempool: Mempool, | mempool: Mempool, | ||||
script_group: ScriptGroup, | script_group: ScriptGroup, | ||||
avalanche: Avalanche, | avalanche: Avalanche, | ||||
subs: RwLock<Subs>, | subs: RwLock<Subs>, | ||||
} | } | ||||
/// Access to the bitcoind node. | |||||
#[derive(Debug)] | |||||
pub struct Node { | |||||
/// FFI bridge to the node. | |||||
pub bridge: cxx::UniquePtr<ffi::ChronikBridge>, | |||||
} | |||||
/// Block to be indexed by Chronik. | /// Block to be indexed by Chronik. | ||||
#[derive(Clone, Debug, Default, Eq, PartialEq)] | #[derive(Clone, Debug, Default, Eq, PartialEq)] | ||||
pub struct ChronikBlock { | pub struct ChronikBlock { | ||||
/// Data about the block (w/o txs) | /// Data about the block (w/o txs) | ||||
pub db_block: DbBlock, | pub db_block: DbBlock, | ||||
/// Txs in the block, with locations of where they are stored on disk. | /// Txs in the block, with locations of where they are stored on disk. | ||||
pub block_txs: BlockTxs, | pub block_txs: BlockTxs, | ||||
/// Block size in bytes. | /// Block size in bytes. | ||||
▲ Show 20 Lines • Show All 643 Lines • Show Last 20 Lines |