-
Notifications
You must be signed in to change notification settings - Fork 1.2k
rpc-v2/tx: Implement transaction_unstable_broadcast and transaction_unstable_stop
#3079
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
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
1e52e10
rpc-v2/tx: Add broadcast method
lexnv e795285
rpc-v2/tx: Submit the transaction to pool until finalized or usurped
lexnv c1e9396
rpc-v2/tx: Generate random operation ID
lexnv 1a8ba25
rpc-v2/tx: Add api for `transaction_unstable_stop`
lexnv 3df160b
rpc-v2/tx: Make the brodcasting future abortable
lexnv badd863
rpc-v2/tx: Stop the brodcasting by aborting the future
lexnv 7f788aa
rpc-v2/tx: Use best block stream for broadcasting the tx
lexnv eef2751
rpc-v2/tx: Implement `Stream::last` for best block imports
lexnv 96a80b0
rpc-v2/tx: Simplify tx trait bounds
lexnv 4e72ce7
rpc-v2/chainHead: Make test util crate public
lexnv 70c7d08
tx/tests: Check brodcasted transaction enters pool
lexnv 0cd5a80
rpc-v2/tx: Split transactionWatch and transactionBroadcast
lexnv 69ea4d2
Merge remote-tracking branch 'origin/master' into lexnv/broadcast-tx
lexnv bacbf8f
tx/tests: Rename tx rpc server to reflect refactoring changes
lexnv da4f247
tx/tests: Improve future testability by extracting a setup helper
lexnv 442a20f
rpc-v2/tx: Add error for broadcast_stop
lexnv 10cced3
tx/tests: Check broadcast stop
lexnv 9f70d44
Merge remote-tracking branch 'origin/master' into lexnv/broadcast-tx
lexnv 909e72f
rpc-v2/tx: Comment typo
lexnv ea93a25
prdoc: Add pr doc
lexnv 9fdc472
tx/tests: Add license
lexnv f8ea133
rpc-v2/tx: Fix docs
lexnv be82fea
Merge branch 'master' into lexnv/broadcast-tx
lexnv e817f49
Merge remote-tracking branch 'origin/master' into lexnv/broadcast-tx
lexnv 21932cb
rpc-v2/tx: Replace mut rand with rand::thread_rng
lexnv e7781a9
Merge remote-tracking branch 'origin/master' into lexnv/broadcast-tx
lexnv 015c87b
rpc-v2/tx: Wrapper for the last available element of a stream
lexnv 301f3bf
tx/tests: Check `last_stream_element` returns the last element
lexnv f174bf6
rpc-v2/tx: Continue broadcast on recoverable errors
lexnv d28e197
rpc-v2/tx: Make broadcast and stop methods non-blocking
lexnv 03b97b4
tx/tests: Ensure invalid tx does not enter the pool
lexnv 58331ae
tx/tests: Move invalid tx stop to a dedicated test
lexnv a27e387
rpc-v2/tx: Adjust comment wrt TransactionStatus::FinalityTimeout
lexnv a0deac0
rpc-v2/tx: Remove generic hash from the transaction broadcast API
lexnv 22c1a6b
rpc-v2/tx: Clean internal state on dropping the future broadcast
lexnv 9fb01af
rpc-v2/tx: Remove unpin requirements
lexnv 68ab17d
tx/tests: Implement future executor for knowing when the tx finishes
lexnv ea83c6a
Update substrate/client/rpc-spec-v2/src/transaction/transaction_broad…
lexnv f11b6c4
Merge remote-tracking branch 'origin/master' into lexnv/broadcast-tx
lexnv 55d9eef
rpc-v2/tx: Use tx error wrappers
lexnv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
| # See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
|
||
| title: Implement transaction_unstable_broadcast and transaction_unstable_stop | ||
|
|
||
| doc: | ||
| - audience: Node Dev | ||
| description: | | ||
| A new RPC class is added to handle transactions. The `transaction_unstable_broadcast` broadcasts | ||
| the provided transaction to the peers of the node, until the `transaction_unstable_stop` is called. | ||
| The APIs are marked as unstable and subject to change in the future. | ||
| To know if the transaction was added to the chain, users can decode the bodies of announced finalized blocks. | ||
| This is a low-level approach for `transactionWatch_unstable_submitAndWatch`. | ||
|
|
||
| crates: [ ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.