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

Method send_transaction

chain/src/transaction.rs:23–25  ·  view source on GitHub ↗

add to the transaction mempool

(&mut self, transaction: Transaction)

Source from the content-addressed store, hash-verified

21
22 // add to the transaction mempool
23 pub(crate) fn send_transaction(&mut self, transaction: Transaction) {
24 self.mempool.push_back(transaction);
25 }
26
27 // get the receipt of the transaction
28 pub(crate) fn get_transaction_receipt(&self, hash: &H256) -> Result<TransactionReceipt> {

Callers 2

sends_a_transactionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected