Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix add and remove don #16523

Merged
merged 4 commits into from
Feb 21, 2025
Merged

Fix add and remove don #16523

merged 4 commits into from
Feb 21, 2025

Conversation

AnieeG
Copy link
Contributor

@AnieeG AnieeG commented Feb 21, 2025

While calculating next DONID addDon cs was calling LatestCCIPDon.
If you remove the last don (n) LatestCCIPDon only gets n-1, and then sends expectedDonID as n but the expectedDonID in Capreg is not reclaimed as n for newly added don, it gets added with n+1 , therefore the addDon reverts with DonIdMismatch reason.
Replacing the LatestCCIPDon call with getNextDonId call from capreg to ensure it returns next available don id for adding a don.

Copy link
Contributor

github-actions bot commented Feb 21, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and dc9ba39 (fix-remove-don).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

1 Results
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestUpdateTokenPriceFeedsFeeQuoterChangeset 0% true true false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/ccip/changeset/v1_6 true 0s @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

@AnieeG AnieeG enabled auto-merge February 21, 2025 20:39
Copy link
Contributor

@kylesmartin kylesmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the issue here that "nonce" has been taken and can't be used again? even if the DON corresponding to that nonce has been removed?

@AnieeG AnieeG added this pull request to the merge queue Feb 21, 2025
@AnieeG
Copy link
Contributor Author

AnieeG commented Feb 21, 2025

Is the issue here that "nonce" has been taken and can't be used again? even if the DON corresponding to that nonce has been removed?

Not sure it can be directly related to nonce , here is the removeDon ref which deletes the entry , next time when you next time try to add another DON it just increments the counter - it does not check whether the previous id is available because of the deletion

Merged via the queue into develop with commit 4675d7f Feb 21, 2025
181 of 182 checks passed
@AnieeG AnieeG deleted the fix-remove-don branch February 21, 2025 21:08
krehermann pushed a commit that referenced this pull request Feb 27, 2025
* remove don fix

* fixes

* fix lint
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.

3 participants