Commit Graph

132 Commits

Author SHA1 Message Date
Georgios Konstantopoulos
533e7c9cc5 perf(SendersRecovery): re-use Secp256K1 context for >2x speedup and add benches (#1171) 2023-02-04 17:09:32 -08:00
Tomás
fd7dc11960 feat(sync): MerkleStage (#994)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: Francisco Krause Arnim <fkrausear@gmail.com>
2023-02-03 18:50:33 -08:00
Matthias Seitz
689ba28caf chore: restructure transaction impl order (#1166) 2023-02-03 16:16:17 -08:00
Georgios Konstantopoulos
e048718ea2 refactor: pull out rpc/ from net/rpc (#1147) 2023-02-02 14:17:26 -08:00
Georgios Konstantopoulos
1f64d8e9d7 refactor: pull reth/common/rlp up to reth/rlp (#1146) 2023-02-02 13:54:13 -08:00
Matthias Seitz
5ee3cfe507 feat(rpc): impl send_raw_transaction (#1123) 2023-02-01 17:20:48 +01:00
joshieDo
cc43b72835 chore(db): microbenchmarking for table serialization and db insertion (#513)
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-01-30 20:08:51 -08:00
rakita
0e24093b0b fix: dont insert empty accounts after spurious dragon (#1089) 2023-01-30 22:21:18 +01:00
Georgios Konstantopoulos
0c341ed9ce Revert "feat: support time-based forking" (#1090) 2023-01-30 10:58:55 -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
Aurélien
9cdead5646 feat: support time-based forking (#985) 2023-01-27 10:49:54 -05:00
rakita
71dc531e68 feat: HistoryStateProvider (#1057) 2023-01-27 11:28:30 +01:00
Giovanni Napoli
99c52e55ba feat: compute genesis root (#1020) 2023-01-25 13:20:33 -05:00
Roman Krasiuk
c23a2215b0 chore(db): restructure providers crate (#1003) 2023-01-25 04:55:34 -08:00
Dan Cline
3a3cbe28ce fix(primitives): ensure sepolia activates london at genesis (#1021) 2023-01-25 01:01:13 +01:00
Estéfano Bargas
68c76664d0 test: small serialization test of u256 into json (#991)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-01-23 20:03:12 +01:00
Estéfano Bargas
b354a17f65 test: add missing fork_id tests for the Görli and Sepolia nets (#987)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-01-23 17:32:29 +01:00
Kim, JinSan
1e84189fec chore(primitives): revise signature interface and transaction encode (#928)
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-01-22 12:53:32 -08:00
Frank Dai
3f7744398b build: bump the CRC crate from 1.x to 3.x (#930) 2023-01-20 18:55:24 -08:00
Matthias Seitz
c41bdd9cbf chore: prevent redundant hash initialization (#947) 2023-01-21 03:47:49 +01:00
Matthias Seitz
a1d83dbbd3 chore: prevent redundant hash initialization (#944) 2023-01-20 09:03:34 -08:00
Matthias Seitz
b4080a7de5 feat: concurrent headers downloader (#891) 2023-01-20 12:06:06 +01:00
Dan Cline
78ffd0a7c0 fix(primitives): remove Hardfork::Eip150, Eip158 (#926) 2023-01-18 19:38:25 -08:00
Georgios Konstantopoulos
d0e3741136 impl From for Status/SealedHeader (#927) 2023-01-18 19:23:02 -08:00
Dan Cline
82b10fae41 feat(primitives): add Hardfork::Eip150 and Eip158 (#925) 2023-01-18 15:04:16 -08:00
Dan Cline
9ab244f8f4 feat(primitives): impl From<Genesis> for ChainSpec (#921) 2023-01-18 13:13:59 -08:00
clabby
a8b7a089b6 feat(bin): Format db list & db status subcommands (#667)
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-01-18 09:59:09 -08:00
Kim, JinSan
161fe0d957 test: signature & transaction w/ EIP155 (#914) 2023-01-18 09:48:52 -08:00
Aurélien
115e623ae6 Ability to (de)serialize NetworkConfigBuilder (#897) 2023-01-18 11:17:43 +01:00
Dan Cline
e1aae3e120 feat(primitives): impl genesis state root helper (#904) 2023-01-17 16:15:42 -08:00
Roman Krasiuk
74fb28932f fix(node): insert genesis on node startup (#909) 2023-01-17 22:34:24 +01:00
Dan Cline
075493ea5e chore(primitives): test all mainnet forkids (#907) 2023-01-17 16:08:36 -05:00
Aurélien
f9de425ad8 refactor: unify all chains confs (#747)
Co-authored-by: Bjerg <onbjerg@users.noreply.github.com>
2023-01-17 07:47:34 -08:00
joshieDo
d50d9bd0fe chore(net): Add proptest roundtrip to rlp types (#829) 2023-01-16 09:50:58 -08:00
Loren Siebert
4c67cf2fb6 Added bench for recovering a transaction's signature (#886) 2023-01-13 16:35:45 -08:00
Matthias Seitz
18dbcd4e6a fix: use correct boolean conversion for direction (#870) 2023-01-13 15:50:39 +01:00
Kim, JinSan
c4bafe809b fix: clippy warnings, or_fun_call and unnecessary_lazy_evaluations (#846) 2023-01-13 11:10:02 +01:00
Matthias Seitz
09c5a04c7b feat(disc): add DnsDiscovery service (#794) 2023-01-12 12:49:02 +01:00
joshieDo
aabbe4923b chore(codecs): add proptest roundtrip to all main_codec (#803) 2023-01-10 22:06:01 -08:00
rakita
e5e74cbc02 fix(execution): Increase cache scope, and apply block reward to cache (#793)
* bug: Apply block reward to evm cache

* Move cache to all blocks

* add tests

* Update crates/executor/src/executor.rs

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
2023-01-10 08:05:50 -08:00
joshieDo
2b5ee2b18d chore(primitives): use reth::Bytes and implements arbitrary (#776)
* clippy

* add arbitrary to reth Bytes

* clean

* add missing dependency
2023-01-09 12:09:18 +01:00
Matthias Seitz
da59ead58d fix(net): use mapped v4 when inserting records (#761) 2023-01-07 13:36:13 +01:00
joshieDo
258431aac8 primitives: add own Bloom type with arbitrary (#746)
* add own Bloom type with arbitrary

* use impl_hash_compact instead

* add doc to exported macro

* remove unused crate and code

* fix rlp encode length for Bloom

* use RlpDecodableWrapper and RlpEncodableWrapper instead
2023-01-06 13:10:19 +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
LambdaClass
75ebfcf0d6 chore: add RLP encoding support for IpAddr (#659)
* Add rlp encoding support for IpAddr

* Lock support behind std feature

* Replace Octets with IpAddr

* Derive Rlp traits for NodeEndpoint

* Derive Rlp traits for NodeRecord
2022-12-29 22:27:51 +01:00
Matthias Seitz
3ab6c278e8 fix(net): improve error propagation (#620)
* fix(net): improve error propagation

* refactor: unify on closed session

* add noop helpers

* add noop helpers

* test setup

* test: add dropped connection test

* rename mock --> test-utils
2022-12-29 16:05:56 +01: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
15e6a359b4 fix: enable missing feature (#644) 2022-12-29 11:07:49 +01:00
Andrew Kirillov
d4d8a8c882 Moves code walkthrough book chapters to docs (#629)
* replaced template blocks with code blocks in stages chapter

* replaced template blocks with code blocks in network chapter

* moved book sections to docs

* fix indentation in recover_signer codeblock

* remove unnecessary TODO comment in network.md
2022-12-28 10:24:39 +01:00
Tomás
dcd3923d19 Add serde support for NodeRecord primitive type (#617)
* Add serde support to NodeRecord

* Move NodeRecord to primitives

along with NodeKey and Octets

* Reexport NodeRecord from discv4

* Move NodeKey and kad_key back to discv4::node

Also, move NodeRecord::key functionality to a helper function: discv4::node::record_key.
This avoids the discv5 dependency in the primitives crate.

* Fix NodeRecord (de)serializing

The default derive macros work with a dictionary like display.
Changed that to serde_with macros, that use Display and FromStr traits.

* Add some tests for NodeRecord (de)serializing

* Hide NodeKey struct

* Move Octets after NodeRecord

* Replace record_key with From trait

* Fix clippy error

unnecessary into()
2022-12-27 18:03:54 +01:00