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

App default nonce includes nonces of 'expired proposals'; certain proposals can be blocked by this #1994

Open
tomstuart123 opened this issue Jun 12, 2024 · 2 comments

Comments

@tomstuart123
Copy link

During testing of 1990, I was using this Safe

As you can see the prior Txs were:

  • Safe name - default to nonce 1 (executed)
  • Add ChildSafe - default to nonce 2 (rejected)
  • Update safename - default to nonce 3 (blocked by 2 above)
  • Add signer (I. manually had to set it to nonce2, not 4)

The Problem - The 'Add ChildSafe' proposal that at nonce 2 ran out of time and was never executed. However, our nonce assumptions still allowed for it and incremented the default nonce to 3 after the expiration time. This meant my 'update safename' was blocked. As SafeName has no manual nonce, I couldn't even get by it (until I used the 'Add Signer' proposal to use the correct nonc2 and unblock it).

Thinking - the app was correct originally to default to nonce 3 as the childsafe proposal was in 'pending'/. However, once it expires, pending should be no longer accounted for. Our app didn't do this

The solution:

  • check our nonce locations and make sure they default to the correct nonce if a pending proposal has now expired. note - I know for sure, addSigner and safeName edits don't do this right now. Not sure about the others

Stretch goal:

  • eventually we should probably allow manual nonce for all proposals (the missing ones are safename and snapshot space). However, this is debateable so no need to tackle this in this issue
@tomstuart123 tomstuart123 converted this from a draft issue Jun 12, 2024
@tomstuart123 tomstuart123 changed the title App default nonce for user includes nonces of 'expired' Txs; Txs won't work App default nonce includes nonces of 'expired proposals'; certain proposals can be blocked by this Jun 12, 2024
@adamgall adamgall moved this from Backlog to Ready in Decent Jul 8, 2024
@Da-Colon Da-Colon moved this from Ready to Backlog in Decent Jul 8, 2024
@adamgall
Copy link
Member

adamgall commented Aug 2, 2024

I think I understand what's going on here. This is indeed a bug that should be fixed.

@Da-Colon
Copy link
Contributor

Is this still an issue? haven't let an proposal expire in a while

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

3 participants