Skip to content

Commit 80e805c

Browse files
committed
small fixes
1 parent 80b125c commit 80e805c

File tree

1 file changed

+2
-4
lines changed
  • pkg/coordinator/tasks/tx_pool_latency_analysis

1 file changed

+2
-4
lines changed

pkg/coordinator/tasks/tx_pool_latency_analysis/task.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)