Skip to content

Commit

Permalink
Merge branch 'express-lane-timeboost' into express-lane-timeboost-ref…
Browse files Browse the repository at this point in the history
…actor-fix-time
  • Loading branch information
Tristan-Wilson authored Dec 18, 2024
2 parents c9a42e2 + 89c0f53 commit 3f3aba0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions execution/gethexec/express_lane_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,14 @@ func (es *expressLaneService) sequenceExpressLaneSubmission(
if !exists {
break
}
delete(es.messagesBySequenceNumber, nextMsg.SequenceNumber)
if err := es.transactionPublisher.PublishTimeboostedTransaction(
ctx,
nextMsg.Transaction,
msg.Options,
); err != nil {
// If the tx failed, clear it from the sequence map.
delete(es.messagesBySequenceNumber, msg.SequenceNumber)
return err
// If the tx fails we return an error with all the necessary info for the controller to successfully try again
return fmt.Errorf("express lane transaction of sequence number: %d and transaction hash: %v, failed with an error: %w", nextMsg.SequenceNumber, nextMsg.Transaction.Hash(), err)
}
// Increase the global round sequence number.
control.sequence += 1
Expand Down

0 comments on commit 3f3aba0

Please sign in to comment.