solana/core/benches
behzad nouri 3f63ed9a72
removes OrderedIterator and transaction batch iteration order (#16153)
In TransactionBatch,
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/transaction_batch.rs#L4-L11
lock_results[i] is aligned with transactions[iteration_order[i]]:
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/bank.rs#L2414-L2424
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/accounts.rs#L788-L817

However load_and_execute_transactions is iterating over
  lock_results[iteration_order[i]]
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/bank.rs#L2878-L2889
and then returning i as for the index of the retryable transaction.

If iteratorion_order is [1, 2, 0], and i is 0, then:
  lock_results[iteration_order[i]] = lock_results[1]
which corresponds to
  transactions[iteration_order[1]] = transactions[2]
so neither i = 0, nor iteration_order[i] = 1 gives the correct index for the
corresponding transaction (which is 2).

This commit removes OrderedIterator and transaction batch iteration order
entirely. There is only one place in blockstore processor which the
iteration order is not ordinal:
https://github.com/solana-labs/solana/blob/e50f59844/ledger/src/blockstore_processor.rs#L269-L271
It seems like, instead of using an iteration order, that can shuffle entry
transactions in-place.
2021-03-31 23:59:19 +00:00
..
banking_stage.rs removes OrderedIterator and transaction batch iteration order (#16153) 2021-03-31 23:59:19 +00:00
blockstore.rs Re-allow clippy::integer_arithmetic at crate-level 2021-02-17 13:55:08 -07:00
cluster_info.rs removes redundant epoch stakes cache in retransmit (#14781) 2021-01-24 21:15:09 +00:00
consensus.rs Persistent tower (#10718) 2020-09-19 14:03:54 +09:00
crds.rs indexes nodes' contact infos in crds table (#13553) 2020-11-15 16:38:04 +00:00
crds_gossip_pull.rs indexes nodes' contact infos in crds table (#13553) 2020-11-15 16:38:04 +00:00
crds_shards.rs Remove unused pubkey::Pubkey imports 2020-10-21 19:08:13 -07:00
gen_keys.rs
poh.rs PoH batch size calibration (#15717) 2021-03-05 16:01:21 -08:00
poh_verify.rs Simd poh (#10604) 2020-06-16 23:03:26 -07:00
retransmit_stage.rs Plumb slot update pubsub notifications (#15488) 2021-02-28 23:29:11 -08:00
shredder.rs buffers data shreds to make larger erasure coded sets (#15849) 2021-03-23 14:52:38 +00:00
sigverify_stage.rs