Commit Graph

987 Commits

Author SHA1 Message Date
3566c56478 perf(sync): do not store empty ommers entries (#1313) 2023-02-13 16:00:45 +01:00
eba63b8f77 fix: chainspec ttd check (#1285)
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-02-11 12:49:01 -08:00
3d0864bbb9 chore: move Transaction container to reth_provider (#1238)
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-02-10 21:25:26 -08:00
d106f8abc1 feat: impl Provider for ChainState type (#1278) 2023-02-10 20:44:25 -08:00
00a49f5ee7 chore(db): remove block numhash key (#1242) 2023-02-10 13:43:00 -08:00
b731bb9bb3 refactor: make SharableDatabase more relax (#1274) 2023-02-10 15:46:54 +01:00
07ed660cae chore: unify provider delegate macro (#1273) 2023-02-10 14:51:27 +01:00
de0ecb036b feat: add ChainState type (#1249) 2023-02-10 14:07:37 +01:00
ebd5d3c1a2 chore: move StateProvider impls to state module (#1251) 2023-02-09 16:41:14 +01:00
314ea0883b feat(cli): integrate rpc server (#1213) 2023-02-07 15:53:39 -08:00
1d1d90bd19 feat: optional serde features (#1214)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-02-07 15:52:32 -08:00
02a6aec3fb feat: support time-based forking (#1128) 2023-02-06 12:55:41 -08:00
c77de627d1 Impl state and account trait for NoopProvider (#1198) 2023-02-06 17:25:54 +01:00
5e97b4e28e feat: Add account_code helper function to AccountProvider (#1169)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-02-06 15:06:08 +01:00
952ec83aed chore(rpc): update forkchoice state in fork_choice_updated handler (#1177) 2023-02-06 00:56:43 -08:00
e048718ea2 refactor: pull out rpc/ from net/rpc (#1147) 2023-02-02 14:17:26 -08:00
e683197eac docs(provider): More context about Stateprovider (#1124) 2023-02-01 17:16:25 +01:00
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
71dc531e68 feat: HistoryStateProvider (#1057) 2023-01-27 11:28:30 +01:00
a9c75d2fc7 bug(db): move seek fn from DubTable to Table (#1031) 2023-01-26 17:39:28 +01:00
6dcced0cfb feat: index account/storage history (#978)
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
2023-01-26 17:03:02 +01:00
c23a2215b0 chore(db): restructure providers crate (#1003) 2023-01-25 04:55:34 -08:00
c7289bd9e8 feat: Selfdestruct storage changeset (#974) 2023-01-23 14:04:45 +01:00
4f91344b5b feat: BlockTransition remove hash from NumHash db index (#894) 2023-01-17 16:18:31 -08:00
3bd1458df6 Rename cursor functions (#787) 2023-01-10 20:08:30 +01:00
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
24d5612027 rename StateProvider structs (#663) 2022-12-30 13:58:44 +02:00
a7d8059357 test(engine): consensus engine tests (#648) 2022-12-30 13:17:27 +02:00
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
284391c181 test(execution): chain test state check, execution bug fixes/upgrades (#472)
* temp: header stage backoff stand-in

* feat(execution): Check chain post state, fix StateProviderLatest and evm return

* Disable receipt merkle tree check

* update and merge

* Fix storage double values in dup table

* fmt

* Update bin/reth/src/test_eth_chain/runner.rs

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Enable receipt root check after byzantium

* Receipt inner rlp without header for proof root

* some cleanup nits

* nit

Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-12-23 18:42:19 +01:00
0b1b5368e6 chore: Rename BlockLocked to SealedBlock (#573)
* chore: Rename BlockLocked to SealedBlock

* chore: fmt

Co-authored-by: Genysys <112424909+samtvlabs@users.noreply.github.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-12-22 14:45:36 +02:00
a85793cd9b feat(rpc): basic engine api (#551)
* feat(rpc): engine api

* change transition config exchange

* payload block construction

* pull out engine api logic

* linter

* clippy

* clippy

* Apply suggestions from code review

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* import & map_err for RecvError

* move result

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2022-12-22 12:38:28 +01:00
daaf039fbf feat(sync): state transition indexes (#449)
* introduce state transitions and revert/modify block bodies table

* init refactor

* revamp transaction iteration based on bodies and add state transition mappings

* change expected return on empty db execution

* interim commit

* fix body downloader & stage

* refactor(bodies/dl): make fetch bodies fn more clear

* chore: disable unused vars/fns temporarily until exec is back

* chore: fmt

* test: fix tests

* use transitions in execution stage

* clarify empty unwind test

* remove last_tx_index fn

* rename fn and var names

* fix full block response comment

* rename fetcher`s get_block_body to get_block_bodies

* Update crates/stages/src/db.rs

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fmt

* fix index overlap check error

* uncomment eth chain command

* fix doc comment

* typos

* cleanup

* any_last_tx_index -> last_tx_index

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
2022-12-16 08:37:49 -08:00
c2719ec27e chore(deps): bump secp256k1 from 0.24.1 to 0.24.2 (#440)
Bumps [secp256k1](https://github.com/rust-bitcoin/rust-secp256k1) from 0.24.1 to 0.24.2.
- [Release notes](https://github.com/rust-bitcoin/rust-secp256k1/releases)
- [Changelog](https://github.com/rust-bitcoin/rust-secp256k1/blob/secp256k1-0.24.2/CHANGELOG.md)
- [Commits](https://github.com/rust-bitcoin/rust-secp256k1/compare/secp256k1-0.24.1...secp256k1-0.24.2)

---
updated-dependencies:
- dependency-name: secp256k1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 16:40:16 +02:00
601bdc5022 feat: wire components together in reth node (#416)
* feat: naively wire up components

* chore: clippy lints

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-12-14 12:51:56 +02:00
dff3936b29 feat(cli): db cmd scaffold (#405)
* feat(cli): db cmd scaffold

* feat(cli): add methods for seeding/listing tables

* feat(cli): add reth db stats

* chore: docs / cleanup

* chore: remove ethers

Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
2022-12-13 18:57:37 +02:00
e014eaad33 feat(db): Refactor storage libraries (#371) 2022-12-09 23:14:07 -08:00