Skip to content

Commit

Permalink
move log for the best fitting tx (#2192)
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusmor authored Jun 14, 2023
1 parent 4a311d5 commit 4ef3d75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sequencer/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ func (w *Worker) GetBestFittingTx(resources state.BatchResources) *TxTracker {
if foundAt == -1 || foundAt > i {
foundAt = i
tx = txCandidate
log.Infof("GetBestFittingTx found tx(%s) at index(%d) with efficiency(%f)", tx.Hash.String(), i, tx.Efficiency)
}
foundMutex.Unlock()

Expand All @@ -273,6 +272,12 @@ func (w *Worker) GetBestFittingTx(resources state.BatchResources) *TxTracker {
}
wg.Wait()

if foundAt != -1 {
log.Infof("GetBestFittingTx found tx(%s) at index(%d) with efficiency(%f)", tx.Hash.String(), foundAt, tx.Efficiency)
} else {
log.Infof("GetBestFittingTx no tx found")
}

return tx
}

Expand Down

0 comments on commit 4ef3d75

Please sign in to comment.