-
Notifications
You must be signed in to change notification settings - Fork 798
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
tx: Remove tx_broadcast transaction from the pool #4050
Conversation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
substrate/client/rpc-spec-v2/src/transaction/transaction_broadcast.rs
Outdated
Show resolved
Hide resolved
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
@@ -106,17 +108,19 @@ where | |||
// The unique ID of this operation. | |||
let id = self.generate_unique_id(); | |||
|
|||
// There is nothing we could do with an extrinsic of invalid format. |
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.
Maybe improve this comment to something like that spec states because this logic was not super obvious to me:
The JSON-RPC server might check whether the transaction is valid before broadcasting it. If it does so and if the transaction is invalid, the server should silently do nothing and the JSON-RPC client is not informed of the problem. Invalid transactions should still count towards the limit to the number of simultaneously broadcasted transactions.
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This PR stabilizes the txBroadcast API to version 1. Ideally needs: - #4050 - #3772 cc @paritytech/subxt-team --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This PR ensures that broadcast future cleans-up the submitted extrinsic from the pool, iff the
broadcast_stop
operation has been called.This effectively cleans-up transactions from the pool when the
broadcast_stop
is called.cc @paritytech/subxt-team