-
Notifications
You must be signed in to change notification settings - Fork 796
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
txpool api
: remove_invalid
call improved
#6661
Open
michalkucharczyk
wants to merge
54
commits into
master
Choose a base branch
from
mku-txpool-remove-invalid
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
04af09b
txpool: API update: remove_invalid -> report_invalid
michalkucharczyk bf2dd1f
other modules updated
michalkucharczyk 8c8e033
basic-authorship: updated
michalkucharczyk 18ceac8
Cargo.lock updated
michalkucharczyk deb5c98
sketch
michalkucharczyk 018f9d4
dropped_watcher: new fns are public
michalkucharczyk 4aa24d3
dropped_watcher: improvement
michalkucharczyk 9fe88a6
fatp: handling higher prio with full mempool
michalkucharczyk 54ae11c
graph: fold_ready improved
michalkucharczyk a6882eb
graph: make some staff public
michalkucharczyk 8d3dffe
tests added
michalkucharczyk 70fd186
type removed
michalkucharczyk d3a1a7b
improvements
michalkucharczyk 4246dac
make use of your brain
michalkucharczyk c203d72
fatp: pending actions now support removals
michalkucharczyk edb1257
validated_pool: SubmitOutcome
michalkucharczyk f778176
view/view_store: SubmitOutcome
michalkucharczyk a72b3f9
mempool: update_transaction stub
michalkucharczyk c411bb4
fatp: SubmitOutcome
michalkucharczyk 7b461bf
fatp: todo added
michalkucharczyk 8765d2c
single-state txpool: SubmitOutcome integration
michalkucharczyk e8ccd44
tests: SubmitOutcome fixes
michalkucharczyk 6cca272
mempool: sizes fix
michalkucharczyk 3b17a16
dropping transaction - size limit is properly obeyed now
michalkucharczyk 4f767e5
merge / rebase fixes
michalkucharczyk 6ba133e
mempool: prio is now locked option
michalkucharczyk 46fa1fd
tests added + dead code cleanup
michalkucharczyk 2221d7a
comments cleanup
michalkucharczyk 0244ba0
tweaks
michalkucharczyk 037e016
Merge remote-tracking branch 'origin/master' into mku-fatxpool-mempoo…
michalkucharczyk 5d0283e
review comments
michalkucharczyk caca2e1
clippy
michalkucharczyk b86ef05
clean up
michalkucharczyk 595c554
Merge remote-tracking branch 'origin/master' into mku-txpool-remove-i…
michalkucharczyk 7471cc6
Merge remote-tracking branch 'polkadot-sdk-master-03/mku-fatxpool-mem…
michalkucharczyk 61d7730
revalidate: use IndexMap to preserve order
michalkucharczyk c88d58b
implementation improvements + doc
michalkucharczyk 8af640f
tests
michalkucharczyk 0fad26c
wording
michalkucharczyk ccdb853
cleanup
michalkucharczyk 1b09887
Cargo.lock updated
michalkucharczyk f1a1650
Update from michalkucharczyk running command 'prdoc --bump minor --au…
7ed1c82
Update prdoc/pr_6661.prdoc
michalkucharczyk 4aa9bf0
Update prdoc/pr_6661.prdoc
michalkucharczyk 2db11e5
Update prdoc/pr_6661.prdoc
michalkucharczyk f97ec19
deps
michalkucharczyk bac9d89
tests: minor improvements
michalkucharczyk 7ef96d0
Merge remote-tracking branch 'origin/master' into mku-txpool-remove-i…
michalkucharczyk 7081c59
test fixed
michalkucharczyk 686a427
Apply suggestions from code review
michalkucharczyk 4200ccc
Comment reviews applied
michalkucharczyk 5bb5f8a
tests: fatp_invalid added
michalkucharczyk af464fa
more tests, fixes, docs updated
michalkucharczyk 1f7280e
Merge remote-tracking branch 'origin/master' into mku-txpool-remove-i…
michalkucharczyk 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 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,17 @@ | ||
title: '`txpool api`: `remove_invalid` call improved' | ||
doc: | ||
- audience: Node Dev | ||
description: |- | ||
Currently the transaction which is reported as invalid by a block builder (or `removed_invalid` by other components) is silently skipped. This PR improves this behavior. The transaction pool `report_invalid` function now accepts optional error associated with every reported transaction, and also the optional block hash which both provide hints how reported invalid transaction shall be handled. Depending on error, the transaction pool can decide if transaction shall be removed from the view only or entirely from the pool. Invalid event will be dispatched if required. | ||
|
||
crates: | ||
- name: sc-transaction-pool-api | ||
bump: minor | ||
- name: sc-transaction-pool | ||
bump: minor | ||
- name: sc-rpc-spec-v2 | ||
bump: minor | ||
- name: sc-rpc | ||
bump: minor | ||
- name: sc-basic-authorship | ||
bump: minor |
This file contains 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 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 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 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 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 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 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 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 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 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.
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.
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.
We could also keep old function
remove_invalid
and add new one, with no optional error/block parameters. Really no strong opinion here.Maybe triggering invalid event in case of removal the transaction via RPC call is (maybe) undesirable - so maybe we should have pure remove function (which would trigger
Dropped
, IMO it makes more sense). Any thoughts? (This could also be done as follow-up).