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

Function process_transactions

chain/src/blockchain.rs:316–323  ·  view source on GitHub ↗
(blockchain: Arc<Mutex<BlockChain>>)

Source from the content-addressed store, hash-verified

314 }
315
316 pub(crate) async fn process_transactions(blockchain: Arc<Mutex<BlockChain>>) {
317 blockchain
318 .lock()
319 .await
320 .process_transactions()
321 .await
322 .unwrap();
323 }
324
325 pub(crate) async fn assert_receipt(blockchain: Arc<Mutex<BlockChain>>, transaction_hash: H256) {
326 process_transactions(blockchain.clone()).await;

Callers 1

assert_receiptFunction · 0.85

Calls 1

process_transactionsMethod · 0.80

Tested by

no test coverage detected