-
Notifications
You must be signed in to change notification settings - Fork 15
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/reset polkadot proxy account nonce #4053
Conversation
PRO-864 Polkadot Vault nonce sync issues
On Perseverance, the vault nonce got out of sync. The current signer key is unavailable, because we fail to broadcast the vault rotation transaction. That is because it uses the wrong nonce. The handover transaction was constructed in statechain block 363820 with nonce 0 The signing key is But nonce 0 for that key had already been used by a different transaction that was submitted in statechain block 361716 (and made it into polkadot in polkadot block 382499) The account nonce was reset from 2 to 0 in statechain block 361702. Even after that, several attempts to sign/submit extrinsics using nonce 2 were made I believe the underlying cause was that a swap drained the entire dot vault, which prevented the transaction from going through. once we provided additional funds, the transaction succeeded, but by that time our nonce counting somehow got out of sync |
Codecov Report
@@ Coverage Diff @@
## release/0.9 #4053 +/- ##
===========================================
- Coverage 72% 72% -0%
===========================================
Files 366 366
Lines 56871 56864 -7
Branches 56871 56864 -7
===========================================
- Hits 41031 41006 -25
- Misses 13759 13770 +11
- Partials 2081 2088 +7
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I'll cherry-pick this into the 0.9.3 branch. |
Closing this here, will cherry pick from main via a separate PR. |
Pull Request
Closes: PRO-864
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
the resetting of the polkadot proxy account nonce is now moved to when the polkadot rotation tx is constructed.