Commit 63e7c7c8 authored by s7v7nislands's avatar s7v7nislands

op-node: when confirm payload failed should cancel it

parent 759c0b29
...@@ -460,6 +460,7 @@ func (eq *EngineQueue) forceNextSafeAttributes(ctx context.Context) error { ...@@ -460,6 +460,7 @@ func (eq *EngineQueue) forceNextSafeAttributes(ctx context.Context) error {
_, errType, err = eq.ConfirmPayload(ctx) _, errType, err = eq.ConfirmPayload(ctx)
} }
if err != nil { if err != nil {
_ = eq.CancelPayload(ctx, true)
switch errType { switch errType {
case BlockInsertTemporaryErr: case BlockInsertTemporaryErr:
// RPC errors are recoverable, we can retry the buffered payload attributes later. // 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