157 Commits

Author SHA1 Message Date
Federico Gimenez
35532e7c83 chore: ensure persistence receiver is dropped (#10133) 2024-08-06 15:10:26 +00:00
Matthias Seitz
eb731762ec chore: rename EngineApiTreeHandler (#10140) 2024-08-06 15:00:29 +00:00
Miguel Tavares
365012b9ca chore: remove trait EngineApiTreeHandler (#10136) 2024-08-06 13:55:15 +00:00
Matthias Seitz
3bfffc6251 docs: misc engine docs (#10135) 2024-08-06 13:13:39 +00:00
Miguel Tavares
2e45697d64 feat: add EngineApiKind enum (#10128) 2024-08-06 12:47:57 +00:00
Matthias Seitz
06e7afbd2d feat: add EngineApi metrics (#10125) 2024-08-06 10:46:22 +00:00
Federico Gimenez
e20d94fe31 chore(engine): enable clippy checks (#10120) 2024-08-06 10:11:38 +00:00
Dan Cline
08158e4449 fix: validate header against parent in engine2 (#10114)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-08-06 02:01:51 +00:00
Matthias Seitz
6008deb360 chore: rm redundant ( (#10112) 2024-08-05 22:43:52 +00:00
Federico Gimenez
447e3cab32 test: live sync transition, tree requests required blocks (#10082) 2024-08-05 16:50:24 +00:00
Matthias Seitz
2d0c10e577 fix: use recv timeout if persistence task is active (#10087) 2024-08-05 14:59:52 +00:00
Federico Gimenez
444c7a961e fix: deadlock on StaticFileProvider::get_writer (#10069)
Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com>
2024-08-05 14:12:36 +00:00
nk_ysg
88be767087 chore(reth-engine-tree): Replace HeadersClient + BodiesClient with BlockClient (#10073) 2024-08-04 17:37:54 +00:00
Dan Cline
9f03f8a269 fix: start payload builder on already canon head (#10041) 2024-08-03 15:16:37 +00:00
Federico Gimenez
e98acdc8d9 feat: improve download observability (#10039) 2024-08-03 08:07:04 +00:00
Dan Cline
1290260da3 chore: remove expects in persistence task (#10031) 2024-08-02 21:01:14 +00:00
Miguel Tavares
d3ae2b7d73 feat: use BTreemap for block numbers in CanonicalInMemoryState (#10040) 2024-08-02 19:02:37 +00:00
joshieDo
06fbdd98d2 chore: use UnifiedStorageWriter::commit where possible (#10019) 2024-08-02 14:11:11 +00:00
Matthias Seitz
ae4be80cd5 chore: better tree observability (#10014) 2024-08-02 11:12:29 +00:00
Federico Gimenez
d6388fdfa9 chore: downgrade empty blocks to persist trace to debug (#10012) 2024-08-02 08:55:29 +00:00
joshieDo
333dbdeda2 chore: move remove_blocks_above to StorageWriter (#9997) 2024-08-01 17:06:44 +00:00
joshieDo
f3fac56fd9 chore: move save_blocks to StorageWriter (#9991) 2024-08-01 16:36:33 +00:00
joshieDo
30840b7b4a chore: combine persistence task removal methods (#9975) 2024-08-01 15:57:01 +00:00
Federico Gimenez
09d5cb53a8 fix: do not truncate blocks to persist (#9986) 2024-08-01 15:38:06 +00:00
Federico Gimenez
0a1be8ca5b test: add engine tree test, FCU triggers reorg with all the blocks present (#9943) 2024-08-01 15:18:50 +00:00
Matthias Seitz
f2c736045f feat: handle disconnected blocks (#9981) 2024-08-01 13:40:46 +00:00
joshieDo
3c2759dcc0 fix: only write receipts once on PersistenceService::save_blocks (#9976) 2024-08-01 10:50:44 +00:00
Dan Cline
93ab09821b feat: combine block writing in persistence task (#9960)
Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com>
Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
2024-08-01 09:59:35 +00:00
Matthias Seitz
f52dc06938 fix: remove persisted blocks properly (#9969) 2024-08-01 07:47:53 +00:00
Matthias Seitz
d57163709f feat: set pending block in canonical memory (#9950) 2024-07-31 16:50:20 +00:00
joshieDo
78c461ea4e fix: share DatabaseProviderRW on PersistenceAction::SaveBlocks (#9929) 2024-07-31 16:27:47 +00:00
joshieDo
245284d62f fix: update indices outside of loop on PersistenceService (#9945) 2024-07-31 15:57:21 +00:00
Matthias Seitz
750eb26256 fix: only check canonical height (#9941) 2024-07-31 15:05:11 +00:00
Matthias Seitz
8dfaf6c97b chore: pick safe hash for initial download (#9934)
Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
2024-07-31 14:32:55 +00:00
Matthias Seitz
263be9cf17 feat: handle insert buffered block err gracefully (#9933) 2024-07-31 14:20:31 +00:00
joshieDo
611a0292f9 chore: move write_hashed_state from StorageWriter to trait StateChangeWriter (#9927) 2024-07-31 13:37:13 +00:00
Federico Gimenez
f9ed57d6a6 test: add TestBlockBuilder (#9925) 2024-07-31 11:50:53 +00:00
Federico Gimenez
a4c3f9c198 chore: use StateRootProvider::hashed_state_root_with_updates (#9928) 2024-07-31 11:24:04 +00:00
Dan Cline
7864ae057e feat: handle tree execution errors gracefully (#9920) 2024-07-31 10:33:26 +00:00
Dan Cline
a90fc90df8 feat: add better engine insert block error type (#9884) 2024-07-30 22:54:05 +00:00
Dan Cline
f3ce077c8a fix: write transactions on save_blocks call (#9912) 2024-07-30 22:17:20 +00:00
Matthias Seitz
d90f2396e5 fix: add missing commit calls for persistence (#9906) 2024-07-30 20:05:25 +00:00
Matthias Seitz
bc48459dae fix: terminate on closed persistence task (#9910) 2024-07-30 16:52:52 +00:00
Federico Gimenez
27e609df1e fix: only persist the canonical chain (#9908) 2024-07-30 16:43:02 +00:00
Matthias Seitz
cf10543d6d fix: update tracked canonical head on backfill finish (#9902) 2024-07-30 13:59:34 +00:00
joshieDo
624f5d5614 fix: set finalized & safe block information on startup (#9898)
Co-authored-by: Danyal Prout <me@dany.al>
2024-07-30 12:06:57 +00:00
Matthias Seitz
e3d375a8f3 fix: check if head block is already canonical (#9900) 2024-07-30 12:01:21 +00:00
Matthias Seitz
4f8721aff2 fix: use correct range to persist (#9896) 2024-07-30 11:24:56 +00:00
Matthias Seitz
f72eab2997 fix: ensure backfill and persistence dont happen at the same time (#9895)
Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
2024-07-30 11:14:41 +00:00
Matthias Seitz
3a088a9ec7 fix: also update persisted height after backfill run (#9894) 2024-07-30 10:38:40 +00:00