brk_computer 0.11.2

A Bitcoin dataset computer built on top of brk_indexer
Documentation
use crate::{
    distribution::{self, AllChainCache},
    frameworks::cointime,
    transactions,
};

pub(crate) struct ImportSources<'a> {
    distribution: &'a distribution::Vecs,
    cointime: &'a cointime::Vecs,
    all_chain: &'a AllChainCache,
    transactions: &'a transactions::Vecs,
}

impl<'a> ImportSources<'a> {
    pub(crate) fn new(
        distribution: &'a distribution::Vecs,
        cointime: &'a cointime::Vecs,
        all_chain: &'a AllChainCache,
        transactions: &'a transactions::Vecs,
    ) -> Self {
        Self {
            distribution,
            cointime,
            all_chain,
            transactions,
        }
    }

    pub(super) fn distribution(&self) -> &distribution::Vecs {
        self.distribution
    }

    pub(super) fn cointime(&self) -> &cointime::Vecs {
        self.cointime
    }

    pub(super) fn all_chain(&self) -> &AllChainCache {
        self.all_chain
    }

    pub(super) fn transactions(&self) -> &transactions::Vecs {
        self.transactions
    }
}