MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / TransactionStorage

Class TransactionStorage

chain/src/transaction.rs:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8#[derive(Debug)]
9pub(crate) struct TransactionStorage {
10 pub(crate) mempool: VecDeque<Transaction>,
11 pub(crate) receipts: DashMap<H256, TransactionReceipt>,
12}
13
14impl TransactionStorage {
15 pub(crate) fn new() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected