-
Notifications
You must be signed in to change notification settings - Fork 690
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
transaction-pool: Improve transaction status documentation and add helpers #3215
Conversation
Signed-off-by: Alexandru Vasile <[email protected]>
Signed-off-by: Alexandru Vasile <[email protected]>
The documentation is improved by having doc links to the states that the transaction pool enumarates. This is to ensure that a rename would cause the `docs` check to fail. Also, the `FinalityTimeout` only happens when the maximum number of watchers has been reached. Contrary to the documentation that states a lagging finality gadget. Signed-off-by: Alexandru Vasile <[email protected]>
Signed-off-by: Alexandru Vasile <[email protected]>
Signed-off-by: Alexandru Vasile <[email protected]>
/// finalized. The `FinalityTimeout` event will be emitted when the block did not reach finality | ||
/// within 512 blocks. This either indicates that finality is not available for your chain, | ||
/// or that finality gadget is lagging behind. If you choose to wait for finality longer, you can | ||
/// re-subscribe for a particular transaction hash manually again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think description of FinalityTimeout is worth keeping. It reflects current implementation.
I am not sure if transaction is retriable when finality timeout event was reported. It could be the case, but it also could mean that transaction was actually finalized. Maybe it is worth putting more info on this.
Signed-off-by: Alexandru Vasile <[email protected]>
…lpers (paritytech#3215) This PR improves the transaction status documentation. - Added doc references for describing the main states - Extra comment wrt pool ready / future queues - `FinalityTimeout` no longer describes a lagging finality gadget, it signals that the maximum number of finality gadgets has been reached A few helper methods are added to indicate when: - a final event is generated by the transaction pool for a given event - a final event is provided, although the transaction might become valid at a later time and could be re-submitted The helper methods are used and taken from paritytech#3079 to help us better keep it in sync. cc @paritytech/subxt-team --------- Signed-off-by: Alexandru Vasile <[email protected]>
This PR improves the transaction status documentation.
FinalityTimeout
no longer describes a lagging finality gadget, it signals that the maximum number of finality gadgets has been reachedA few helper methods are added to indicate when:
The helper methods are used and taken from #3079 to help us better keep it in sync.
cc @paritytech/subxt-team