feat: Support processing concurrent background transactions #1428

Merged
nex merged 19 commits from nex/feat/better-inbound-txn-handle into main 2026-02-23 17:48:12 +00:00

19 commits

Author SHA1 Message Date
558262dd1f
chore: Refactor transaction_ids -> transactions
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m32s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m24s
Documentation / Build and Deploy Documentation (push) Successful in 3m58s
Checks / Prek / Pre-commit & Formatting (push) Successful in 6m38s
Release Docker Image / Build linux-amd64 (release) (push) Has been cancelled
Release Docker Image / Build linux-arm64 (release) (push) Has been cancelled
Checks / Prek / Clippy and Cargo Tests (push) Has been cancelled
Release Docker Image / Create Multi-arch Release Manifest (push) Has been cancelled
Release Docker Image / Build linux-amd64 (max-perf) (push) Has been cancelled
Release Docker Image / Build linux-arm64 (max-perf) (push) Has been cancelled
Release Docker Image / Create Max-Perf Manifest (push) Has been cancelled
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 41m27s
2026-02-23 17:44:35 +00:00
d311b87579
chore: Fix incorrect capitalisation
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m35s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m36s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 17m42s
I didn't realise I agreed to take an English class with @ginger while
working on this server lol
2026-02-23 17:25:12 +00:00
8702f55cf5
fix: Don't panic if nobody's listening
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m38s
Checks / Prek / Pre-commit & Formatting (pull_request) Has been cancelled
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been cancelled
2026-02-23 17:22:37 +00:00
d4481b07ac
chore: Add news frag
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Successful in 2m9s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m44s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 24m11s
2026-02-23 16:54:54 +00:00
92351df925
refactor: Make federation transaction handle errors correctly
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Successful in 2m50s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 4m59s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been cancelled
We have a dedicated error type that's then matched.
Event sorting is now infallible.
Could probably be cleaned up in a bit.
2026-02-23 16:36:46 +00:00
47e2733ea1
refactor: Make stream utils generic over the error type 2026-02-23 16:36:46 +00:00
6637e4c6a7
fix: Clean up cache, prevent several race conditions
We use one map which is only ever held for a short time.
2026-02-23 16:36:46 +00:00
35e441452f
feat: Attempt to build localised DAG before processing PDUs 2026-02-23 16:36:46 +00:00
66bbb655bf
feat: Warn when server is overloaded 2026-02-23 16:36:45 +00:00
81b202ce51
chore: Decrease transaction log verbosity 2026-02-23 16:36:45 +00:00
4657844d46
feat: Show active transaction handle count in !admin federation incoming-federation 2026-02-23 16:36:45 +00:00
9016cd11a6
chore: Run pre-commit and clippy to fix inherited CI errs 2026-02-23 16:36:45 +00:00
dd70094719
feat: Make max_active_txns actually configurable 2026-02-23 16:36:45 +00:00
fcd49b7ab3
fix: Remove duplicate fields from logs 2026-02-23 16:36:45 +00:00
470c9b52dd
feat: Instrument process_inbound_transaction 2026-02-23 16:36:45 +00:00
0d8cafc329
feat: Support casting transaction processing to the background 2026-02-23 16:36:44 +00:00
2f9956ddca
feat: Add helper functions for federation channels 2026-02-23 16:36:44 +00:00
21a97cdd0b
chore: Refactor existing references to transaction service 2026-02-23 16:36:44 +00:00
e986cd4536
feat(federation): Restructure transaction_ids service
Adds two new in-memory maps to the service in to prepare for better handlers
2026-02-23 16:36:40 +00:00