Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce ledger-tool simulate-block-production (#2733)
* Introduce ledger-tool simulate-block-production * Move counting code out of time-sensitive loop * Avoid misleading ::clone() altogether * Use while instead of loop+break * Add comment of using BTreeMap * Reduce simulation jitter due to mem deallocs * Rename to CostTracker::new_from_parent_limits() * Make ::load() take a slice * Clean up retracer code a bit * Add comment about BaningTracer even inside sim * Remove redundant dcou dev-dependencies * Apply suggestions from code review Co-authored-by: Andrew Fitzgerald <[email protected]> * Fix up and promote to doc comments * Make warm-up code and doc simpler * Further clean up timed_batches_to_send * Fix wrong units... * Replace new_with_dummy_keypair() with traits * Tweak --no-block-cost-limits description * Remove redundant dev-dependencies * Use RwLock to mimic real ClusterInfo * Fix typo * Refactor too long BankingSimulator::start() * Reduce indent * Calculate required_duration in advance * Use correct format specifier instead of cast * Align formatting by using ::* * Make envs overridable * Add comment for SOLANA_VALIDATOR_EXIT_TIMEOUT * Clarify comment a bit * Fix typoss * Fix typos Co-authored-by: Andrew Fitzgerald <[email protected]> * Use correct variant name: DeserializeError * Remove SimulatorLoopLogger::new() * Fix typos more * Add explicit _batch in field names * Avoid unneeded events: Vec<_> buffering * Manually adjust logging code styles * Align name: spawn_sender_loop/enter_simulator_loop * Refactor by introducing {Sender,Simulator}Loop * Fix out-of-sync sim due to timed preprocessing * Fix too-early base_simulation_time creation * Don't log confusing info! after leader slots * Add justification comment of BroadcastStage * Align timeout values * Comment about snapshot_slot=50 * Don't squash all errors unconditionally * Remove repetitive exitence check * Promote no_block_cost_limits logging level * Make ci/run-sanity.sh more robust * Improve wordking of --enable-hash-overrides * Remove marker-file based abortion mechanism * Remove needless touch --------- Co-authored-by: Andrew Fitzgerald <[email protected]>
- Loading branch information