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

Method new

chain/src/transaction.rs:15–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14impl TransactionStorage {
15 pub(crate) fn new() -> Self {
16 Self {
17 mempool: VecDeque::new(),
18 receipts: DashMap::new(),
19 }
20 }
21
22 // add to the transaction mempool
23 pub(crate) fn send_transaction(&mut self, transaction: Transaction) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected