kaspa-mining 0.15.0

Kaspa mining
Documentation
1
2
3
4
5
6
7
8
9
use super::tx::MempoolTransaction;
use kaspa_consensus_core::tx::{TransactionId, TransactionOutpoint};
use std::collections::HashMap;

/// MempoolTransactionCollection maps a transaction id to a mempool transaction
pub(crate) type MempoolTransactionCollection = HashMap<TransactionId, MempoolTransaction>;

/// OutpointIndex maps an outpoint to a transaction id
pub(crate) type OutpointIndex = HashMap<TransactionOutpoint, TransactionId>;