We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb1812c commit 4e3e5e4Copy full SHA for 4e3e5e4
executor/batchsubmitter/batch.go
@@ -56,6 +56,15 @@ func (bs *BatchSubmitter) prepareBatch(blockHeight int64) error {
56
return errors.Wrap(err, "failed to set synced height")
57
}
58
59
+ err = node.DeleteProcessedMsgs(bs.da.DB())
60
+ if err != nil {
61
+ return errors.Wrap(err, "failed to delete processed msgs")
62
+ }
63
+ err = node.DeletePendingTxs(bs.da.DB())
64
65
+ return errors.Wrap(err, "failed to delete pending txs")
66
67
+
68
// error will restart block process from nextBatchInfo.Output.L2BlockNumber + 1
69
panic(fmt.Errorf("batch info updated: reset from %d", nextBatchInfo.Output.L2BlockNumber))
70
0 commit comments