Commit Graph

46 Commits

Author SHA1 Message Date
8dd7a78356 feat: add transaction validation task (#3358) 2023-06-25 13:12:00 +00:00
77167134d0 docs: document crate features (#3269) 2023-06-21 19:35:38 +00:00
4709fcf16c feat(txpool): add price bump for is_underpriced transaction check (#3202) 2023-06-19 13:35:25 +00:00
13dcfb8e6e chore: expose txpool types that enable implementing TransactionPool trait (#3225) 2023-06-19 10:58:07 +00:00
7ca8a297a8 feat(txpool): add add_and_subscribe (#2603) 2023-05-08 15:28:53 +02:00
3591a6f249 feat(rpc): add txpool namespace (#2591) 2023-05-06 13:47:27 -07:00
a3e627e801 feat(txpool): add update_basefee function (#2447) 2023-04-30 11:05:51 +02:00
2b7b14ab8c chore(deps): rm unused deps (#2435) 2023-04-27 16:20:14 +02:00
4763aad11e feat(txpool): add pool manage task (#2298)
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-04-26 11:10:02 +02:00
57d49ab506 docs: extend validate docs (#2300) 2023-04-18 12:33:06 -04:00
10af3ab8cf perf(txpool): filter by sender id (#2080) 2023-04-02 11:39:28 -07:00
481f60acee rpc: add missing fields in send_transaction (#1976)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-04-02 17:47:45 +02:00
3810548bd7 chore(txpool): add AlreadyImported variant (#2009) 2023-03-28 19:00:30 +02:00
5f7171f125 chore(txpool): rename remove_invalid to remove_transactions (#1973) 2023-03-24 20:38:51 +01:00
ea4b4f77e9 feat: add pooled_transaction_max (#1971) 2023-03-24 19:09:02 +01:00
8673e95d0a feat(txpool): replace testing pool with default eth pool (#1857) 2023-03-20 12:53:07 +01:00
e33e93c9a0 chore(txpool): remove Arc for internals (#1733) 2023-03-13 06:00:47 -07:00
a0f195590c feat(txpool): default transaction ordering (#1704) 2023-03-10 08:30:36 -08:00
fdfeeb42dc refactor(txpool): use transaction error type (#1698) 2023-03-10 15:57:12 +01:00
ad5f9aa78c refactor: extract transaction consensus errors to standalone type (#1697) 2023-03-10 04:43:04 -08:00
ba96b9d165 feat: Add Latest State TransactionValidator implementation (#1498) 2023-03-10 10:35:59 +01:00
75e677cfde chore(txpool): expose PooledTransaction (#1649) 2023-03-06 09:22:12 -08:00
2d1bcd17d8 perf: improve initial pooled tx exchange (#1615) 2023-03-03 14:50:49 -05:00
e65162dd05 chore(txpool): add pooled transaction function to get full tx object (#1483) 2023-02-21 15:06:31 -05:00
5933014fba test(net): more txpool testing support for network (#711) 2023-01-04 14:36:51 +02:00
c2b19cecef feat: add txpool metrics (#584)
* feat(metrics): `Metrics` derive macro

* rename metrics to metrics-derive

* use fully qualified fmt path

* metric vec with capacity

* favor metrics over simple scope attr, simplify code

* pull metric description from doc comment

* rm debug log

* add more docs and sample usage

* link to metrics macros

* add tests for metrics derive macro

* clippy

* Fix doc of headers_unexpected_errors field of HeaderMetrics

* Add tx pool metrics struct and metrics updates in code

* Format file

* Update metrics doc

* Add some comments

* Format file

* Refactor metrics describers for consistency

* Format files

* Fix broken import

* Apply metrics macro to TxPoolMetrics

* Remove unused imports

* Remove unused commented code

* Remove files

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
2022-12-27 16:44:41 +01:00
9e6acece17 expose transaction origin (#383) 2022-12-11 09:15:25 +01:00
eedd31ca59 feat(txpool): implement missing remove function (#378) 2022-12-10 09:15:16 -08:00
6870c41fb0 chore(txpool): deny additional lints (#379) 2022-12-10 09:12:16 -08:00
7867c67eaa chore(typool): clippy cleanup, docs and renames (#277) 2022-11-28 14:16:33 +01:00
b6d9fe87b9 feat(net): propagate new transactions (#256) 2022-11-25 22:13:20 +01:00
4fd1225dd6 chore(txpool): clarify ready terminology (#234) 2022-11-22 13:04:19 -05:00
f8fddcdfa4 feat(p2p): integrate txpool in p2p (#208) 2022-11-15 22:27:41 +01:00
92a7818512 feat: bodies stage (#190)
* chore: clean up `.gitignore`

* fix: make RO cursors `Send + Sync`

* feat(wip): bodies stage

* driveby: improve docs

* chore: don't panic if we're the first stage

* chore: use `Vec` for ommers

* feat: error handling in bodies downloader

* chore: remove stale comment

* chore: pascal-case stage id

* refactor: remove unused new fns

* refactor: distinguish downloaders with prefix

* refactor: move downloader errs to own module

* refactor: `stream_bodies` -> `bodies_stream`

* test: fix borked imports in header stage

* test: clean up header tests

* test: add basic body stage tests

* test: add 2 more body stage test skeletons

* test: move generator test utils to own module

* refactor: move proof functions to primitives crate

* feat: add block generator test utils

* test: more body stage tests

* chore: fix typo (`Cannonical*` -> `Canonical`)

* docs: document `bodies_to_download`

* test: more body stage tests

* test: more body stage tests

* refactor: clean up body stage tests a bit

* test: fix broken tests

* refactor: clean up body stage tests

* test: more body stage tests
2022-11-15 08:49:11 +01:00
e870a4ce13 refactor(txpool): use tx hash for on new block update (#170)
* refactor(txpool): use tx hash for updates

* chore: rustfmt
2022-11-07 14:50:36 +01:00
2e6b18a154 wip: feat(txpool): add on block update (#69)
* feat(txpool): add on new block handler

* feat(txpool): work on update routine

* feat(txpool): start update process

* feat: implement update loop
2022-10-20 08:34:04 -07:00
2009b764c0 feat(txpool): add PoolStatus Api (#91) 2022-10-18 12:56:53 -07:00
edd0e852f2 feat(txpool): introduce transaction origin (#85) 2022-10-17 07:14:18 -07:00
6d0bd9037e feat(txpool): add get_all function (#65) 2022-10-14 11:19:15 +02:00
6b71460e7e refactor(txpool): simplify validator trait (#60)
* refactor(txpool): simplify validator trait

* fix docs
2022-10-13 20:36:15 +02:00
55768a534d feat(txpool): add listeners for all transactions (#59) 2022-10-13 10:47:32 -07:00
74b04dc81a refactor(txpool): get rid of block number requirement (#56) 2022-10-12 16:24:19 -07:00
6d4e39deef refactor(txpool): cleanup pass (#53)
* chore: some cleanup

* refactor(txpool): simplify layers and add docs

* refactor: more cleanup

* refactor: cleanup and simplifications
2022-10-12 18:23:08 +02:00
4fb99848fd refactor(txpool): simplify layers and add docs (#52)
* chore: some cleanup

* refactor(txpool): simplify layers and add docs
2022-10-12 17:58:36 +02:00
3fed7cfe21 feat(txpool): new txpool design (#22) 2022-10-11 17:10:02 +02:00
791ee2839f feat(txpool): initial sketch (#7) 2022-10-07 22:00:19 +02:00