Skip to content

[collector] track commitments only after successful send#3290

Open
sashass1315 wants to merge 1 commit intocommonwarexyz:mainfrom
sashass1315:fix/collector-tracked-on-send-success
Open

[collector] track commitments only after successful send#3290
sashass1315 wants to merge 1 commit intocommonwarexyz:mainfrom
sashass1315:fix/collector-tracked-on-send-success

Conversation

@sashass1315
Copy link
Contributor

collector::p2p::Engine was creating a tracked commitment before network send completed.
If send failed (or returned no recipients), the commitment could remain in tracked without any real outbound request, which caused stale state and inaccurate outstanding tracking until manual cancel.

Move commitment tracking to the successful send path and only track when at least one recipient was actually sent to.
This prevents stale tracked entries on send errors/empty recipient results while preserving existing behavior for valid sends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant