Skip to content

Commit 5c2f73c

Browse files
committed
(junk) dedup
1 parent 5688603 commit 5c2f73c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

runtime-sdk/src/dispatcher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)