node::MiniMiner::MiniMiner

Constructor in which the MiniMinerMempoolEntry entries have been constructed manually. It is assumed that all entries are unique and their values are correct, otherwise results computed by MiniMiner may be incorrect. Callers should check IsReadyToCalculate() after construction.

Synopsis

Declared in <node/mini_miner.h>

MiniMiner(
    std::vector<MiniMinerMempoolEntry> const& manual_entries,
    std::map<Txid, std::set<Txid>> const& descendant_caches);

Parameters

NameDescription
manual_entries [in]The manually constructed entries to mine over.
descendant_caches [in]A map from each transaction to the set of txids of this transaction's descendant set, including itself. Each tx in manual_entries must have a corresponding entry in this map, and all of the txids in a descendant set must correspond to a tx in manual_entries.