Commit 8272207c authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub

Merge pull request #5065 from s7v7nislands/add_cancel_payload

op-node: when confirm payload failed should cancel it
parents 711ebbe8 e9b4145c
......@@ -485,6 +485,7 @@ func (eq *EngineQueue) forceNextSafeAttributes(ctx context.Context) error {
_, errType, err = eq.ConfirmPayload(ctx)
}
if err != nil {
_ = eq.CancelPayload(ctx, true)
switch errType {
case BlockInsertTemporaryErr:
// RPC errors are recoverable, we can retry the buffered payload attributes later.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment