Commit Graph

952 Commits

Author SHA1 Message Date
Håvard Anda Estensen
d2c8b77e64 perf: replace BytesMut with alloy_rlp::encode (#7087) 2024-03-14 12:11:20 +00:00
Dan Cline
eb6828350d fix: check that data is large enough to fit header and mac (#7118) 2024-03-12 16:09:15 +00:00
Dan Cline
f75bebd8d5 fix: use checked math for read_body (#7117) 2024-03-12 16:01:36 +00:00
Dan Cline
074747a419 fix: refactor ecies message parsing to check bounds (#7108) 2024-03-12 15:00:18 +00:00
Dan Cline
99711550d8 fix: use concat_kdf crate instead of hand rolled NIST SP 800-56A KDF (#7106) 2024-03-12 14:52:46 +00:00
Dan Cline
9707cb2b8d chore: remove test structs that are never constructed (#7107) 2024-03-12 03:59:13 +00:00
int88
ef1a196c54 fix: ban trusted peer for a short period (#7071) 2024-03-11 17:35:30 +00:00
Matthias Seitz
81291ff0fb chore: more Vec over BytesMut (#7084) 2024-03-11 12:50:50 +00:00
int88
6dbc5e0cee fix: remove redundant checking for if peer is banned (#7069)
Signed-off-by: int88 <golden-miner@qq.com>
2024-03-09 15:05:56 +00:00
rakita
d4ff65bfad bump: revm v7.1.0 (#7064) 2024-03-09 00:12:26 +00:00
Matthias Seitz
48b763f88a chore: bump max concurrent outbound dials (#7057) 2024-03-08 20:37:13 +00:00
Matthias Seitz
bf948d1719 chore: be less strict when slashing trusted peers (#7052) 2024-03-08 19:58:59 +00:00
DaniPopes
3c028e5ef4 chore: fix typos (#7049) 2024-03-08 14:23:37 +00:00
Håvard Anda Estensen
7fa35042dd perf: replace BytesMut with alloy_rlp::encode (#7047)
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
2024-03-08 13:56:28 +00:00
Emilia Hane
b66f54d9eb chore(deps): bump ethers to 2.0.14, enr to 0.10, unpin discv5 (#6634)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
2024-03-06 18:30:38 +00:00
Abner Zheng
6f8d1a8137 Rename TxType variants to UpperCamelCase (#7012) 2024-03-06 17:36:58 +00:00
Emilia Hane
ed086497b7 Shorten error message on debug assertion (#6988) 2024-03-06 15:37:13 +00:00
DaniPopes
a1df972464 chore: remove most ethers mentions and code (#6999) 2024-03-06 14:38:15 +00:00
Matthias Seitz
c7826cb555 fix: immediately refill slots (#6997) 2024-03-06 14:33:32 +00:00
Emilia Hane
422b8f8e75 Prioritisation network manager + transactions manager + eth request handler (#6590)
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
2024-03-06 13:43:21 +00:00
int88
23a72d3fce remove clique related tests (#6996)
Signed-off-by: int88 <golden-miner@qq.com>
2024-03-06 12:31:46 +00:00
back
ec401aa781 rm deposit from pooledtx (#6941)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-03-05 10:48:50 +00:00
Emilia Hane
ebe72f7ae8 Tx fetcher metrics (#6951) 2024-03-04 17:39:54 +00:00
abhi
0d3b77f3c1 restrict max concurrent outbound dials (#6860) 2024-03-04 17:34:28 +00:00
Emilia Hane
a792f160db Comment TransactionsManager (#6651) 2024-03-04 17:17:58 +00:00
int88
b75862010a fix(tx-fetcher): only remove peer from active_peers when inflight_count <= 0 (#6928)
Signed-off-by: int88 <golden-miner@qq.com>
2024-03-03 18:29:55 +00:00
Emilia Hane
d6bd0a67e3 Small tx response verification optimisation (#6911) 2024-03-03 17:35:00 +00:00
Emilia Hane
ba1061a043 Return fetch error on response that fails verification or validation (#6864) 2024-03-03 14:31:28 +00:00
Emilia Hane
ef7ce3601f Filter announcement txns pending import (#6932) 2024-03-02 18:51:30 +00:00
Emilia Hane
c82a84c77a Add test for tx response verification (#6926) 2024-03-02 11:50:34 +00:00
Emilia Hane
8ea032adad Remove accidentally merged fields (#6912) 2024-03-01 15:44:22 +00:00
back
5e2cac442f 0x/rm unused dep (#6899)
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
2024-03-01 11:34:31 +00:00
Matthias Seitz
defe34f04f chore: unify decode enveloped fn args (#6904) 2024-03-01 11:32:15 +00:00
int88
1d28fc606e bound hashes inflight and pending fetch size (#6877)
Signed-off-by: int88 <golden-miner@qq.com>
2024-03-01 01:58:42 +00:00
Dan Cline
771951429e fix: use HashSet for transactions_by_peers (#6893) 2024-02-29 20:44:32 +00:00
Dan Cline
7d36206dfe fix: handle both compressed and uncompressed disconnect reason decoding (#6862) 2024-02-29 15:31:11 +00:00
Delweng
9468527aad chore: remove unused dependencies to speed up building time (#6882)
Signed-off-by: jsvisa <delweng@gmail.com>
2024-02-29 15:10:20 +00:00
DaniPopes
b00e3f98be chore: remove cargo-udeps-related workflow and metadata (#6889) 2024-02-29 15:07:25 +00:00
Matthias Seitz
19ff1fb35c chore: downgrade discv4 debug! to trace! (#6879) 2024-02-29 14:08:32 +00:00
Alexey Shekhirin
6b5b6f7a40 Breaking changes (#5191)
Co-authored-by: Bjerg <onbjerg@users.noreply.github.com>
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
Co-authored-by: joshieDo <ranriver@protonmail.com>
Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
Co-authored-by: Thomas Coratger <thomas.coratger@gmail.com>
2024-02-29 12:37:28 +00:00
Emilia Hane
559124ac5a Performance metrics for NetworkManager future (#6746) 2024-02-29 02:55:09 +00:00
Delweng
859406666e chore(net): use smallvec only if debug_assertions configed (#6866)
Signed-off-by: jsvisa <delweng@gmail.com>
2024-02-29 02:54:04 +00:00
Emilia Hane
00ac218dbf Downgrade all logs in validation to trace (#6863) 2024-02-28 22:42:06 +00:00
Supernovahs.eth
3519270c69 remove proptest specific encoding logic (#6503)
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
2024-02-28 21:45:51 +00:00
Abner Zheng
329082d81b feat: Implement eth68 announcement metrics, track entries by TxType (#6786)
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
2024-02-28 17:53:45 +00:00
Matthias Seitz
0f26cd6df3 fix: get MAX_NODES_PER_BUCKET when respond closest (#6842) 2024-02-28 14:18:24 +00:00
Dan Cline
27f1496daa chore: make clippy happy (#6837) 2024-02-28 05:32:03 +00:00
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
Emilia Hane
0c529220eb Fix units for tx manager poll metrics (#6817) 2024-02-27 13:18:11 +00:00
rakita
9a949e905b fix(ChainTree): set first block on forked chain (#6821) 2024-02-27 12:52:30 +00:00