Commit Graph

47 Commits

Author SHA1 Message Date
Emilia Hane
0007c9a4d2 Verify tx response data against request (#6439)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
2024-02-27 17:09:27 +00:00
back
208eb6d6a1 Make transaction manager param configurable from cli (#6594)
Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
Co-authored-by: Bjerg <onbjerg@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-02-16 22:25:55 +00:00
Emilia Hane
34cda3a99f Sanitise eth68 announcement (#6222)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Bjerg <onbjerg@users.noreply.github.com>
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
2024-01-31 13:19:51 +00:00
Thomas Coratger
9aa44093cf lints: move top-level lints to [workspace.lints] manifest table (#5935) 2024-01-04 13:38:02 +00:00
lmittmann
686129cb63 feat(network): added NetworkConfigBuilder.block_import(..) (#5783)
Co-authored-by: lmittmann <lmittmann@users.noreply.github.com>
2023-12-15 20:20:45 +00:00
Matthias Seitz
5a04931397 feat: add NetworkProtocols trait (#5543) 2023-11-23 14:51:40 +00:00
Matthias Seitz
820f67e741 feat: support additional protocols abstraction (#5360) 2023-11-10 18:41:06 +00:00
Matthias Seitz
2488aa079e feat: support hello message with protocols (#5371) 2023-11-09 20:21:19 +00:00
Panagiotis Ganelis
80be039c77 feat: add trait forNetworkEvents (#5354)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-11-08 13:24:03 +00:00
DaniPopes
470449ff24 fmt: format doc comments (#5308) 2023-11-05 13:06:30 +00:00
Alexey Shekhirin
b85aa94033 docs: paradigmxzy -> paradigmxyz (#4837) 2023-09-28 14:27:30 +00:00
DaniPopes
8f9d2908ca chore: add and fix more lints, improve docs (#4765) 2023-09-25 15:46:46 +00:00
Matthias Seitz
9ebeca3bef chore: simplify builder fn (#4284) 2023-08-20 13:07:32 +02:00
niko-renko
335908c07e Update lib.rs (#4017) 2023-08-01 00:40:30 +00:00
Dan Cline
c1b1eac505 chore: make some session types pub (#3666) 2023-07-14 20:23:00 +00:00
Léo Vincent
0096739dbb doc: add reth logo to docs (#3317)
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
2023-06-26 15:41:11 +00:00
joshieDo
054f30f43c chore: rename Block*Provider for Block*Reader (#3385) 2023-06-26 14:13:45 +00:00
Bjerg
77167134d0 docs: document crate features (#3269) 2023-06-21 19:35:38 +00:00
Bjerg
238eea37cf feat: add node identity to networking stack (#2758) 2023-05-20 09:24:31 +02:00
Dan Cline
8835443c35 feat: include SessionsConfig in reth.toml (#2416)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-04-26 10:58:17 -04:00
jawilk
643ee5226c chore(net): improve network service launch error diagnostic (#2068) 2023-04-01 08:20:27 +02:00
Bjerg
f60b380a1e test: allow testing without --all-features (#1882) 2023-03-21 15:19:37 +01:00
Dan Cline
7ac06cd29f feat: use chain specific bootnodes (#1826) 2023-03-17 19:28:00 -04:00
Matthias Seitz
7c9b212b4a chore: relax Arc requirement for provider (#1429) 2023-02-17 14:40:20 +01:00
Aurélien
e2ac4d3f3c feat: convert HeadersClient BodiesClient futures into associated types (#1063) 2023-01-30 01:25:15 -08: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
Tomás
2ae88b01df test: fix failing doctests (#1024)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-01-25 04:04:48 +01:00
mempirate
c326186397 fix(net): export PeerInfo struct (#973) 2023-01-23 02:16:15 -08:00
Dan Cline
55d1db0c1d feat(network): move test helpers to test-utils mod (#901) 2023-01-17 11:18:53 +01:00
Sanket Shanbhag
e4bd5b4fe9 feat(net): add NetworkMetrics (#708)
* Added NetworkMetrics

* update docs

* add more metrics and make naming consistent

* add active inbound and outbound connection metrics
2023-01-05 10:17:57 +01:00
Aurélien
65bc3cb7b8 RPC Admin namespace implementation (#685)
* AdminApi first draft

* Implement add_trusted_peer and remove_trusted_peer

* Fix tests

* Refactoring NetworkHandle peer related methods

* Refactoring add_discovered_node in PeersManager

* Change record type from String to NodeRecord

* Adding NetworkHandleMessage::RemovePeer command
2023-01-03 14:02:05 +01:00
LambdaClass
efac887e30 chore: add serde feature to network crate (#653)
* Add serde feature and support for PeersConfig

* Add Duration fields and Weights

* Add serde for ConnectionInfo field
2023-01-01 18:27:55 +02:00
Roman Krasiuk
565a0aa90b feat(engine): new payload execution (#631)
* feat(engine): new payload execution

* address PR comments

* rm unused dev deps

* add comment about lru

* remove par_iter
2022-12-29 02:36:56 -08:00
Matthias Seitz
9dbf280bfb docs(net): add bird's eye view docs (#456) 2022-12-15 11:36:58 +02:00
Matthias Seitz
43f6bb9127 feat(net): integrate discovery banlist (#442)
* feat(net): integrate discovery banlist

* fix typos
2022-12-14 19:47:11 +02:00
Matthias Seitz
12e7f0acbc feat(net): make Status and Hello configurable (#431)
* feat(net): make Status and Hello configurable

* set port
2022-12-14 11:39:09 +01:00
Matthias Seitz
24bc633bbd feat(net): add NetworkBuilder type (#421) 2022-12-13 21:38:12 +01:00
mempirate
452a81e0d3 feat(net): expose message module (#390)
* feat(net): expose message module

* feat(net): expose `PeerRequest`, allow missing docs
2022-12-12 18:34:54 +02:00
Will Smith
fecdc3f0f2 feat(net): add peer_id/ip blacklist (#366) 2022-12-11 02:05:07 -08:00
Matthias Seitz
c117d4b44f docs(net): add example docs and fix links (#375) 2022-12-10 09:19:25 -08:00
Matthias Seitz
480097a7ca feat(net): add eth request handler (#293)
* feat(net): add block request manager

* refactor: change ommers type to Header

* feat: impl handlers

* rename to EthRequestHandler

* impl checks

* fix: skip as step

* chore: rustfmt
2022-11-30 21:19:50 +01:00
Matthias Seitz
7879389059 chore(net): deny unused and cleanup (#289) 2022-11-29 20:57:40 +01:00
Matthias Seitz
f4dbeddc97 refactor: rename FetchClient and move to submodule (#245)
* refactor: rename FetchClient and move to submodule

* chore(clippy): make clippy happy
2022-11-24 11:43:05 +01:00
Matthias Seitz
0f45f16455 test(net): add Testnet implementation for testing (#232)
* test(net): add Testnet implementation for testing

* test(net): add testnet type and test
2022-11-22 19:33:01 -05:00
Matthias Seitz
b60ced1de1 feat: add missing message handling (#200)
* feat: add missing message handling

* refactor: new block message handling

* feat: add events and commands for transaction handling

* more work in transactions

* chore: silence warnings
2022-11-15 10:34:28 +01:00
Dan Cline
f1e6639374 feat(net): authenticate sessions (#178)
* Switch stream type of ActiveSession to EthStream

 * Start `StatusBuilder` for initializing the `Status` message required
   for the handshake
 * Add `Hardfork` for `Status` default forkid
 * Add `MAINNET_GENESIS` constant

* finish `StatusBuilder`

* initialize eth streams in session

 * add status, hello, and fork filter to session manager
 * fix status builder example
 * add status and hello to network config
   * will probably remove

* removing status and hello from networkconfig

* move forkid to primitives

* change imports for forkid

* add hardfork to primitives

* remove hardfork and forkid from eth-wire

* fix remaining eth-wire forkid references

* put mainnet genesis in constants, remove NodeId

* replace NodeId with PeerId

 * the only NodeId remaining is inherited from enr
 * PeerId still needs to be documented
 * also run cargo fmt

* replace loop with iter().any()

* ignore missing docs for hardforks

* use correct PeerId for Discv4::bind example test

* document PeerId as secp256k1 public key

* cargo fmt

* temporarily allow too_many_arguments

 * the authenticate and start_pending_incoming_session methods have many
   arguments, we can reconsider the lint or fix the methods at a later
   point
2022-11-14 12:03:05 -05:00
Matthias Seitz
b7cdfbf4f9 feat(net): network scaffolding (#110)
* feat(net): network scaffolding
2022-11-07 09:27:08 +01:00