Skip to content

Commit

Permalink
Merge pull request #1326 from kaleido-io/reject
Browse files Browse the repository at this point in the history
Perform nextpin calculations for both confirmed and rejected messages
  • Loading branch information
peterbroadhurst authored May 31, 2023
2 parents 04ed0e2 + 23f1792 commit 26f0245
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/events/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ func (ag *aggregator) processMessage(ctx context.Context, manifest *core.BatchMa
default:
// Check the pin signer is valid for the message
action, err = ag.checkOnchainConsistency(ctx, msg, pin)
if action != core.ActionConfirm {
if action == core.ActionWait || action == core.ActionRetry {
break
}

Expand Down Expand Up @@ -524,8 +524,10 @@ func (ag *aggregator) processMessage(ctx context.Context, manifest *core.BatchMa
}
}

l.Debugf("Attempt dispatch msg=%s broadcastContexts=%v privatePins=%v", msg.Header.ID, unmaskedContexts, msg.Pins)
action, correlator, err = ag.readyForDispatch(ctx, msg, data, manifest.TX.ID, state, pin)
if action == core.ActionConfirm {
l.Debugf("Attempt dispatch msg=%s broadcastContexts=%v privatePins=%v", msg.Header.ID, unmaskedContexts, msg.Pins)
action, correlator, err = ag.readyForDispatch(ctx, msg, data, manifest.TX.ID, state, pin)
}
}

if action == core.ActionRetry {
Expand Down

0 comments on commit 26f0245

Please sign in to comment.