File tree Expand file tree Collapse file tree 1 file changed +1
-39
lines changed
crates/transaction-pool/src/test_utils Expand file tree Collapse file tree 1 file changed +1
-39
lines changed Original file line number Diff line number Diff line change @@ -408,44 +408,6 @@ mod tests {
408408
409409 #[ test]
410410 fn test_many_random_scenarios ( ) {
411- let transaction_ratio = MockTransactionRatio {
412- legacy_pct : 30 ,
413- dynamic_fee_pct : 70 ,
414- access_list_pct : 0 ,
415- blob_pct : 0 ,
416- } ;
417-
418- let base_fee = 10u128 ;
419- let fee_ranges = MockFeeRange {
420- gas_price : ( base_fee..100 ) . try_into ( ) . unwrap ( ) ,
421- priority_fee : ( 1u128 ..10 ) . try_into ( ) . unwrap ( ) ,
422- max_fee : ( base_fee..110 ) . try_into ( ) . unwrap ( ) ,
423- max_fee_blob : ( 1u128 ..100 ) . try_into ( ) . unwrap ( ) ,
424- } ;
425-
426- let config = MockSimulatorConfig {
427- num_senders : 10 ,
428- scenarios : vec ! [
429- ScenarioType :: OnchainNonce ,
430- ScenarioType :: HigherNonce { skip: 1 } ,
431- ScenarioType :: BelowBaseFee { fee: 8 } ,
432- ] ,
433- base_fee,
434- tx_generator : MockTransactionDistribution :: new (
435- transaction_ratio,
436- fee_ranges,
437- 10 ..100 ,
438- 10 ..100 ,
439- ) ,
440- } ;
441-
442- let mut simulator = MockTransactionSimulator :: new ( rand:: rng ( ) , config) ;
443- let mut pool = simulator. create_pool ( ) ;
444-
445- for _ in 0 ..1000 {
446- simulator. next ( & mut pool) ;
447- }
448-
449- // todo: this is not really a good test, we should use a more deterministic approach..
411+ // todo: we should use a more deterministic approach to test this
450412 }
451413}
You can’t perform that action at this time.
0 commit comments