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

Handling the attestation pallet's OutStandingAttestationRequest error #1207

Open
ameba23 opened this issue Dec 9, 2024 · 0 comments
Open
Milestone

Comments

@ameba23
Copy link
Contributor

ameba23 commented Dec 9, 2024

When trying out attestations on a test network, ive had issues with the OutStandingAttestationRequest error. The code all works, but there is maybe a usability issue with our design.

We allow at most one pending attestation request. This means once we have requested an attestation, if we request another one we get an OutStandingAttestationRequest error.

Pending attestations get removed when an attestation is successfully verified, but not if they fail. Which kinda makes sense.

But if our attestation fails with an error, and we change something to fix the issue, we cannot request a new attestation, we have to use the nonce of the existing one.

With the way things are currently set up, all our client functions and test-cli commands assume the happy path where we want to request a fresh attestation. So if something goes wrong we can get in to a sort of locked state where we have no way to remove a pending attestation.

So we need to either:

  • Make client functions which take a nonce, or perhaps better still, use the existing pending nonce if there is one, and request a new one otherwise.
  • If an attestation fails, remove the pending attestation. That is, you get one chance to submit an attestation, regardless of whether it succeeds or fails.
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Entropy Core Dec 9, 2024
@ameba23 ameba23 added this to the v0.4.0 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant