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

Do not create overlapping claims events on advance-runner #537

Closed
2 tasks
marcelstanley opened this issue Jul 29, 2024 · 2 comments
Closed
2 tasks

Do not create overlapping claims events on advance-runner #537

marcelstanley opened this issue Jul 29, 2024 · 2 comments
Assignees
Labels
#feat:machine-advancer Feature: machine advancer
Milestone

Comments

@marcelstanley
Copy link
Collaborator

📚 Context

A duplicate rollups claim was detected on an application running rollups-node v1.5.0-rc1 along with sunodo experimental external claimer.

Output from the redis stream:

5) 1) "1720358484614-0"
   2) 1) "payload"
      2) "{\"dapp_address\":\"69b9af2474d8dda0329be8da831ce063a4636587\",\"epoch_index\":4,\"epoch_hash\":\"162f158d132cdd6cbefbe3b2cf229af182905ff7034445dd0b6ad013772c4a76\",\"first_index\":27,\"last_index\":31}"
6) 1) "1720454043072-0"
   2) 1) "payload"
      2) "{\"dapp_address\":\"69b9af2474d8dda0329be8da831ce063a4636587\",\"epoch_index\":5,\"epoch_hash\":\"162f158d132cdd6cbefbe3b2cf229af182905ff7034445dd0b6ad013772c4a76\",\"first_index\":27,\"last_index\":31}"

The full contents can be found at 1.5.0-rc1-advance-runner-duplicate-clalims.txt

✔️ Solution

Initial analysis point to a faulty check on the advance-runner, where the first and input indexes are not checked before the claim is produced, allowing for duplicates to be created.

There was no ramifications to this bug as the claimer itself is able to handle duplicates claimes.

However, we should add a more robust test, a counterpart for the claim checker, which would check for overlapping input indexes along with the verification of epoch index before a claim can be submitted to the claims stream.

📈 Subtasks

  • Test for overlapping input indexes
  • Update tests
@marcelstanley marcelstanley added the bug Something isn't working label Jul 29, 2024
@marcelstanley marcelstanley added this to the 1.5.1 milestone Jul 29, 2024
@marcelstanley marcelstanley added ! High priority #feat:machine-advancer Feature: machine advancer and removed bug Something isn't working labels Jul 29, 2024
@marcelstanley
Copy link
Collaborator Author

marcelstanley commented Jul 29, 2024

A draft for a potential solution is available at #523

@marcelstanley marcelstanley added 1.x and removed ! High priority labels Jul 29, 2024
@marcelstanley marcelstanley moved this to 📋 Backlog in Node Unit Jul 30, 2024
@marcelstanley marcelstanley removed the 1.x label Aug 2, 2024
@marcelstanley marcelstanley moved this from 📋 Backlog to 🏗 In progress in Node Unit Aug 12, 2024
@GMKrieger GMKrieger moved this from 🏗 In progress to ✅ Done in Node Unit Aug 16, 2024
@GMKrieger
Copy link
Contributor

Done in #523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#feat:machine-advancer Feature: machine advancer
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants