Skip to content

Commit

Permalink
Fix: add backup submit process if composer failes
Browse files Browse the repository at this point in the history
  • Loading branch information
quasystaty1 committed Apr 11, 2024
1 parent dd034f2 commit b2fe796
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion astria/mempool/reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ func (mr *MempoolReaper) Reap() {
// submit to shared sequencer
err := mr.c.SendMessageViaComposer(mempoolTx.Tx())
if err != nil {
mr.logger.Error("error sending message: %s\n", err)
mr.logger.Info("error sending message via composer, trying directly: %s\n", err)

res, err := mr.c.BroadcastTx(mempoolTx.Tx())
if err != nil {
mr.logger.Error("error sending message: %s\n", err)
}
mr.logger.Debug("tx response", "log", res.Log)
return
}
mr.logger.Debug("succesfully sent transaction to composer")
Expand Down

0 comments on commit b2fe796

Please sign in to comment.