Skip to content

fix(txm): delete nonceBroadcastCounts on tx confirmation - #698

Closed
cawthorne wants to merge 1 commit into
developfrom
fix/txm-nonce-broadcast-counts-leak
Closed

fix(txm): delete nonceBroadcastCounts on tx confirmation#698
cawthorne wants to merge 1 commit into
developfrom
fix/txm-nonce-broadcast-counts-leak

Conversation

@cawthorne

Copy link
Copy Markdown
Contributor

Summary

  • Delete nonceBroadcastCounts entries in the TXM confirm loop when a transaction is confirmed
  • Matches existing cleanup for broadcastTimes on the same path

Problem

nonceBroadcastCounts was populated on every broadcast but only deleted during nonce resync/stale-tx handling. On a normal OCR transmitter node, one map entry accumulated per confirmed transmission for the process lifetime.

Introduced in chainlink-starknet #655 (merged 2025-11-28); first shipped in chainlink core via plugin bump #20490 (2025-12-03, ref 0051d73c).

Test plan

  • go test ./relayer/pkg/chainlink/txm/...
  • Merge and bump chainlink plugins.public.yaml starknet ref when ready

nonceBroadcastCounts entries were only removed on nonce resync, not when
transactions confirmed normally, causing unbounded sync.Map growth over
the lifetime of OCR transmitter nodes.
@cawthorne
cawthorne requested a review from a team as a code owner June 19, 2026 12:20
@github-actions

Copy link
Copy Markdown

👋 cawthorne, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@cawthorne
cawthorne marked this pull request as draft June 19, 2026 12:21
@cl-sonarqube-production

Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 75%)

See analysis details on SonarQube

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