File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
pkg/coordinator/tasks/tx_pool_latency_analysis Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ func (t *Task) Execute(ctx context.Context) error {
228228 t .ctx .SetResult (types .TaskResultFailure )
229229 return
230230 }
231- latenciesMus [tx_index ] = time .Now (). Sub (txStartTime [tx_index ]).Microseconds ()
231+ latenciesMus [tx_index ] = time .Since (txStartTime [tx_index ]).Microseconds ()
232232 receivedEvents ++
233233
234234 if receivedEvents % t .config .MeasureInterval == 0 {
@@ -374,9 +374,7 @@ func (t *Task) generateTransaction(ctx context.Context, i int) (*ethtypes.Transa
374374 feeCap := & helper.BigInt {Value : * big .NewInt (100000000000 )} // 100 Gwei
375375 tipCap := & helper.BigInt {Value : * big .NewInt (1000000000 )} // 1 Gwei
376376
377- var txObj ethtypes.TxData
378-
379- txObj = & ethtypes.DynamicFeeTx {
377+ txObj := & ethtypes.DynamicFeeTx {
380378 ChainID : t .ctx .Scheduler .GetServices ().ClientPool ().GetExecutionPool ().GetBlockCache ().GetChainID (),
381379 Nonce : nonce ,
382380 GasTipCap : & tipCap .Value ,
You can’t perform that action at this time.
0 commit comments