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

Change extrinsic submission flow #1760

Open
wants to merge 18 commits into
base: staging
Choose a base branch
from

Conversation

camfairchild
Copy link
Collaborator

This changes the flow of extrinsic submission.
Currently, the flow suffers from a double-compose issue.
Current flow if the submission has an exception
(assume the initial submission is included in the chain, regardless of the client exception):

  1. call _do_transfer
  2. create new transfer extrinsic
  3. sign extrinsic using new nonce
  4. submit extrinsic
  5. ERROR!
  6. retry from 2.
  7. SUCCESS!

In the above example, now there have been 2 valid transfer extrinsics submitted (and included) to the chain
This is bad, this is a double-send by the Python API

This PR changes the flow to retry only the submission portion. (i.e., 6. retries from 4.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant