Skip to content

Implement tx selection time of High scored txs #9179

@ahamlat

Description

@ahamlat

Implement a transaction selection time of high scored transactions

Current behaviour

Produced #23,192,821 / 300 tx / 0 om / 29,481,838 (1.5%) gas / (0xb9dbf8b76bec7e7f780559df0abe419df36f4726a50f61a4970745f1af466834) in 1.569s / Timing(started at 2025-09-
11T09:58:35.158638058Z, protocolWait=0ms, duplicateWorldState=31ms, preTxsSelection=3ms, txsSelection=1373ms, 
blockAssembled=31ms, importingBlock=129ms, notifyListeners=0ms, log=0ms)

Expected behaviour

Produced #23,192,821 / 300 tx / 0 om / 29,481,838 (1.5%) gas / 
(0xb9dbf8b76bec7e7f780559df0abe419df36f4726a50f61a4970745f1af466834) in 1.569s / Timing(started at 
2025-09-
11T09:58:35.158638058Z, protocolWait=0ms, duplicateWorldState=31ms, preTxsSelection=3ms, 
txsSelection=1373ms, txsSelectionHighScore=950ms, 
blockAssembled=31ms, importingBlock=129ms, notifyListeners=0ms, log=0ms)

This helps to investigate the transaction selection time one there is a timeout to understand what time the transactions that were included in the block took in terms of selection time, example :


Produced #23,354,394 / 70 tx / 0 om / 2,785,671 (0.1%) gas / 
(0x051f72e4bff0c012e2c03fc9fcf4d476a3775689ce1329647439e26ec17280d6) in 2.014s / Timing(started at 
2025-09-15T09:13:46.954264875Z, protocolWait=46ms, duplicateWorldState=0ms, preTxsSelection=2ms, 
txsSelection=1923ms, blockAssembled=15ms, importingBlock=26ms, notifyListeners=0ms, log=0ms) 

I this case, there was a timeout but we don't know the real time it tool to select the 70 transactions

Transaction ... is processing for 1704ms, giving it 316ms grace time

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions