Commit Graph

97 Commits

Author SHA1 Message Date
Matthias Seitz
cfff7b3e60 chore: add minimal protocol base fee (#2121) 2023-04-05 03:42:29 -07:00
Matthias Seitz
10af3ab8cf perf(txpool): filter by sender id (#2080) 2023-04-02 11:39:28 -07:00
Bharath Vedartham
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
Matthias Seitz
47b9738ede chore: fix some typos (#2025) 2023-03-29 14:49:50 +02:00
Matthias Seitz
93056edbc7 fix(txpool): use default account if non existing (#2015) 2023-03-28 17:57:00 -04:00
Matthias Seitz
3810548bd7 chore(txpool): add AlreadyImported variant (#2009) 2023-03-28 19:00:30 +02:00
Matthias Seitz
b55b2d6182 fix(txpool): differentiate pool error variants (#2008) 2023-03-28 18:28:24 +02:00
Matthias Seitz
7bd2576049 fix(txpool): fix legacy tx chain id check (#2005) 2023-03-28 12:24:21 -04:00
Matthias Seitz
f0a95689a4 chore(txpool): include tx object in assert message (#1989) 2023-03-26 17:18:44 +02:00
Matthias Seitz
2e0755fc2d fix(txpool): update current pool based on state (#1972) 2023-03-24 20:54:15 +01:00
Matthias Seitz
5f7171f125 chore(txpool): rename remove_invalid to remove_transactions (#1973) 2023-03-24 20:38:51 +01:00
chirag-bgh
ea4b4f77e9 feat: add pooled_transaction_max (#1971) 2023-03-24 19:09:02 +01:00
Matthias Seitz
f2cb8bec63 fix(rpc): fix invalid tip above fee check (#1885) 2023-03-21 18:13:08 +01:00
Matthias Seitz
8673e95d0a feat(txpool): replace testing pool with default eth pool (#1857) 2023-03-20 12:53:07 +01:00
François Garillot
075544e889 refactor: various cleanups (#1833)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-03-18 14:13:09 +01:00
Matthias Seitz
498687b761 feat(txpool): add EthTransactionValidator::new (#1792) 2023-03-16 14:11:16 +01:00
Matthias Seitz
6c12ccb6e1 chore(txpool): add IntoRecoveredTransaction to PoolTransaction (#1750) 2023-03-14 11:14:32 +01:00
Matthias Seitz
e33e93c9a0 chore(txpool): remove Arc for internals (#1733) 2023-03-13 06:00:47 -07:00
Roman Krasiuk
a0f195590c feat(txpool): default transaction ordering (#1704) 2023-03-10 08:30:36 -08:00
Roman Krasiuk
99a821aa78 chore(txpool): delete unused removed updates (#1703) 2023-03-10 07:07:35 -08:00
Matthias Seitz
fdfeeb42dc refactor(txpool): use transaction error type (#1698) 2023-03-10 15:57:12 +01:00
Roman Krasiuk
89514d70f2 fix(txpool): track promoted transactions (#1702) 2023-03-10 06:49:26 -08:00
Matthias Seitz
ad5f9aa78c refactor: extract transaction consensus errors to standalone type (#1697) 2023-03-10 04:43:04 -08:00
chirag-bgh
ba96b9d165 feat: Add Latest State TransactionValidator implementation (#1498) 2023-03-10 10:35:59 +01:00
Matthias Seitz
2c6a35929e docs(txpool): clarify ParkedPool transaction type (#1671) 2023-03-08 04:57:37 -08:00
Roman Krasiuk
3503444342 chore(txpool): expose underlying tx (#1651) 2023-03-06 11:55:41 -08:00
Roman Krasiuk
75e677cfde chore(txpool): expose PooledTransaction (#1649) 2023-03-06 09:22:12 -08:00
Roman Krasiuk
1e007d6911 docs(txpool): minor fixes (#1645) 2023-03-06 07:59:01 -08:00
Roman Krasiuk
809d0cab03 fix(txpool): queued tx ordering (#1643) 2023-03-06 06:49:48 -08:00
Matthias Seitz
2d1bcd17d8 perf: improve initial pooled tx exchange (#1615) 2023-03-03 14:50:49 -05:00
Roman Krasiuk
823866ac57 feat(rpc): launch auth server (#1506)
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-02-22 14:39:37 -08:00
Aurélien
fdff1b0f02 feat: add encoded_length to ValidPoolTransaction (#1512) 2023-02-22 16:59:41 +01:00
Aurélien
2e73463a58 feat: Add tx_type() and encoded_length() on PoolTransaction trait (#1500) 2023-02-22 13:56:35 +01:00
Matthias Seitz
e65162dd05 chore(txpool): add pooled transaction function to get full tx object (#1483) 2023-02-21 15:06:31 -05:00
Tomás
6c3e2bd5c1 fix: compile errors on standalone txpool build (#1316)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-02-13 15:59:45 +01:00
Tomás
1d1d90bd19 feat: optional serde features (#1214)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-02-07 15:52:32 -08:00
Matthias Seitz
10aa3d617a feat(rpc): impl rpc-builder types (#1203) 2023-02-07 11:03:05 -08:00
Kim, JinSan
072a6c56d3 chore(txpool): implement ensure_max_init_code_size() (#1062)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-01-27 21:53:24 +01:00
Bjerg
87306f2892 ci: ensure docs build (#1073)
Co-authored-by: xqft <estefano.bargas@fing.edu.uy>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-01-27 18:49:22 +01:00
Martin Paulucci
2d20be0d5c refactor: Make Transaction fee and price field types consistent (#1005)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-01-24 21:05:14 +01:00
Ikechukwu Ahiara Marvellous
237e66126b feat: add PoolTransaction struct (#804)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-01-13 12:34:42 +01:00
LambdaClass
7c9c2fea50 feat(txpool): add gas limit check when inserting new transactions (#780)
* Add gas limit check when inserting transaction

Part of the code was copied from an issue comment:
https://github.com/paradigmxyz/reth/issues/76#issuecomment-1345281800

Co-authored-by: Eduardo <96149783+elprogramadorgt@users.noreply.github.com>

* Add test for gas limit check

Co-authored-by: Eduardo <96149783+elprogramadorgt@users.noreply.github.com>
2023-01-09 20:50:06 +01:00
Dimitris Apostolou
31cb66902e fix: Fix typos (#773) 2023-01-09 01:43:51 +01:00
Matthias Seitz
5933014fba test(net): more txpool testing support for network (#711) 2023-01-04 14:36:51 +02:00
joshieDo
6407b5087e chore: use B160, B256 and U256 coming from revm and ruint (#676)
* use B256, B160 and U256 from revm

* fix U256 from_str

* use U256::ZERO

* use temporary commit for revm and interpreter

* more U256::ZERO

* more changes for revm/ruint types

* clippy

* change revm and revm-interpreter repo

* remove H160 wrap

* minor cleanup

* remove unused

* fix MIN_PROTOCOL_BASE_FEE
2023-01-04 11:11:48 +02:00
Matthias Seitz
bec1937f63 chore: rm rpc type imports (#645) 2022-12-29 17:08:41 +01:00
Andrew Kirillov
a51fa4fd63 docs(book): start book chapter for network crate (#445)
* WIP FOR DRAFT PR

* WIP draft, walking through usage in pipeline

* diving deeper into instantiation of NetworkHandle & FetchClient

* WIP network management task & eth requests task done (ish)

* address pr comments: networkmanager as standalone task, networkconfig as main entrypoint for setup

* complete draft of the  crate docs

* restructured, starts w/ expl of

* added more snippets/anchors

* using ignore flag on code blocks, brief explanation of  struct

* typos addressed
2022-12-27 14:53:15 -08:00
Mariano A. Nicolini
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
Matthias Seitz
1c3d704244 docs: fix indentation (#626) 2022-12-27 06:43:26 -08:00
Matthias Seitz
ecbbb8835c docs(txpool): clarify validate_transaction (#582) 2022-12-23 05:43:13 +01:00