-
Notifications
You must be signed in to change notification settings - Fork 47
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
Improve nonce handling #1027
Comments
Currently, the cached nonce is not systematically updated. See #1007 (comment) |
One step towards solving this, as discussed in #1033, is to ensure that we use the |
I will try to solve this while doing #1049 |
After merging #1054 , i tested the issue and found that the issue has not been resolved. Can you help to double check? |
Hm.. you're right, I guess. While hopefully all extrinsic offline creations now use the ExtrinsicFactory, in case of a nonce mismatch ( a call lost somewhere or invalid) the nonce will not be correct anymore in the local storage. @clangenb please correct me if I'm wrong. However, there's already a similar issue: #231 which I just updated accordingly. Edit: |
Currently when we use the extrinsic factory to create extrinsics we use a cached nonce value. As we do not always know when an extrinsic has not been executed successfully, all subsequent extrinsics will have a wrong nonce. (See issue).
Furthermore, what happens when the extrinsics are sent in parallel? Can we ensure that the nonce is unique?
How do we handle extrinsics that have already been sent with the wrong nonce?
What other issues should be considered?
The text was updated successfully, but these errors were encountered: