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

fatxpool: proper handling of priorities when mempool is full #6647

Draft
wants to merge 47 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
e0a7bc6
flaky test fixed
michalkucharczyk Oct 30, 2024
354d6a3
dropped_watcher: explicit view removal
michalkucharczyk Oct 30, 2024
1151556
fatp: prios some intial tests added
michalkucharczyk Oct 31, 2024
c9f2d39
base_pool: handling conflicts in future improved
michalkucharczyk Nov 4, 2024
406c37b
dropped_watcher: rename C -> ChainApi
michalkucharczyk Nov 4, 2024
fb5e355
base_pool: handling conflicts in future (2)
michalkucharczyk Nov 4, 2024
e798e34
fatp: DroppedTransaction + DroppedReason added
michalkucharczyk Nov 4, 2024
7b58a68
graph: dedicated usurped/limit_enforced calls added
michalkucharczyk Nov 7, 2024
322774c
dropped_watcher: todo added
michalkucharczyk Nov 7, 2024
a116c20
test: prios tests
michalkucharczyk Nov 7, 2024
560db28
dropped_watcher: dropping future transcations improved
michalkucharczyk Nov 11, 2024
5a83cf5
test fixed
michalkucharczyk Nov 11, 2024
c566dad
tests: future dropping test added
michalkucharczyk Nov 11, 2024
f10590f
fatp: TimedTransactionSource added
michalkucharczyk Nov 12, 2024
7b96ca3
adjusting tests
michalkucharczyk Nov 12, 2024
69567b8
fixes
michalkucharczyk Nov 12, 2024
414ec3c
fatp: better support for usurped transactions
michalkucharczyk Nov 14, 2024
0cf6043
Update from michalkucharczyk running command 'prdoc --bump major --au…
actions-user Nov 14, 2024
44a0096
one more test + future_at added
michalkucharczyk Nov 14, 2024
d69c660
clippy
michalkucharczyk Nov 14, 2024
b47b174
is_imported: fix
michalkucharczyk Nov 14, 2024
2d0bbf8
fatp: avoid some duplications in update_view_with_mempool
michalkucharczyk Nov 14, 2024
31b3392
prdoc updated
michalkucharczyk Nov 14, 2024
f66b1ad
misspell
michalkucharczyk Nov 14, 2024
4449969
prodc
michalkucharczyk Nov 14, 2024
4855881
Merge remote-tracking branch 'origin/master' into mku-fatxpool-priori…
michalkucharczyk Nov 15, 2024
26d27ec
api: async_trait
michalkucharczyk Nov 18, 2024
e27e9b5
api: async_trait - rpc
michalkucharczyk Nov 18, 2024
2a6190a
Merge remote-tracking branch 'origin/master' into mku-fatxpool-mempoo…
michalkucharczyk Nov 19, 2024
b413f2b
dropped_watcher: new fns are public
michalkucharczyk Nov 26, 2024
0b34584
dropped_watcher: improvement
michalkucharczyk Nov 26, 2024
55dfa7b
fatp: handling higher prio with full mempool
michalkucharczyk Nov 26, 2024
11f7226
graph: fold_ready improved
michalkucharczyk Nov 26, 2024
e133feb
graph: make some staff public
michalkucharczyk Nov 26, 2024
b4a5d1b
tests added
michalkucharczyk Nov 26, 2024
4338671
type removed
michalkucharczyk Nov 26, 2024
302d69b
improvements
michalkucharczyk Nov 28, 2024
3ca1e57
make use of your brain
michalkucharczyk Nov 28, 2024
eecc849
fatp: pending actions now support removals
michalkucharczyk Nov 28, 2024
213a27a
validated_pool: SubmitOutcome
michalkucharczyk Nov 29, 2024
bb7801d
view/view_store: SubmitOutcome
michalkucharczyk Nov 29, 2024
bbb75b1
mempool: update_transaction stub
michalkucharczyk Nov 29, 2024
fe7c2f9
fatp: SubmitOutcome
michalkucharczyk Nov 29, 2024
d547510
fatp: todo added
michalkucharczyk Nov 29, 2024
9e4d43f
single-state txpool: SubmitOutcome integration
michalkucharczyk Nov 29, 2024
7734748
tests: SubmitOutcome fixes
michalkucharczyk Nov 29, 2024
e1dce5a
mempool: sizes fix
michalkucharczyk Nov 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions prdoc/pr_6405.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: '`fatxpool`: handling limits and priorities improvements'
doc:
- audience: Node Dev
description: |-
This PR provides a number of improvements and fixes around handling limits and priorities in the fork-aware transaction pool.

crates:
- name: sc-transaction-pool
bump: major
4 changes: 2 additions & 2 deletions substrate/client/transaction-pool/benches/basics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fn uxt(transfer: TransferData) -> Extrinsic {
}

fn bench_configured(pool: Pool<TestApi>, number: u64, api: Arc<TestApi>) {
let source = TransactionSource::External;
let source = TimedTransactionSource::new_external(false);
let mut futures = Vec::new();
let mut tags = Vec::new();
let at = HashAndNumber {
Expand All @@ -171,7 +171,7 @@ fn bench_configured(pool: Pool<TestApi>, number: u64, api: Arc<TestApi>) {

tags.push(to_tag(nonce, AccountId::from_h256(H256::from_low_u64_be(1))));

futures.push(pool.submit_one(&at, source, xt));
futures.push(pool.submit_one(&at, source.clone(), xt));
}

let res = block_on(futures::future::join_all(futures.into_iter()));
Expand Down
Loading
Loading