File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -683,6 +683,7 @@ impl<R: Runtime + Send + Sync> transaction::dispatcher::Dispatcher for Dispatche
683683 let mut new_batch = Vec :: new ( ) ;
684684
685685 // Execute incoming messages.
686+ let in_msg_txs = Vec :: new ( ) ; // todo: more efficient way to do this
686687 let in_msgs_gas_limit = R :: Core :: remaining_in_msgs_gas ( ctx) ;
687688 let mut in_msgs_processed = 0usize ;
688689 for in_msg in in_msgs {
@@ -754,6 +755,7 @@ impl<R: Runtime + Send + Sync> transaction::dispatcher::Dispatcher for Dispatche
754755 let last_batch_tx_hash = batch. last ( ) . map ( |raw_tx| Hash :: digest_bytes ( raw_tx) ) ;
755756
756757 for raw_tx in batch. drain ( ..) {
758+ // todo: skip copies of incoming message txs
757759 // If we don't have enough gas for processing even the cheapest transaction
758760 // we are done. Same if we reached the runtime-imposed maximum tx count.
759761 let remaining_gas = R :: Core :: remaining_batch_gas ( ctx) ;
You can’t perform that action at this time.
0 commit comments