Commit Graph

136 Commits

Author SHA1 Message Date
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
Matthias Seitz
cd430121dd fix: overflow on persistence check (#9892) 2024-07-30 10:29:50 +00:00
Federico Gimenez
de467c9f7e test: add engine tree test, FCU with missing head (#9890) 2024-07-30 10:05:50 +00:00
Matthias Seitz
ba1c6fcf46 feat: connect buffered blocks on backfill sync finish (#9876) 2024-07-30 07:48:45 +00:00
Federico Gimenez
c2410606c4 test: refactor engine tree TestHarness (#9871) 2024-07-29 18:54:44 +00:00
Matthias Seitz
0b91e03ff4 feat: state housekeeping after backfill finished (#9870) 2024-07-29 17:38:20 +00:00
Matthias Seitz
8eba1286d8 feat: support make canonical on demand (#9867) 2024-07-29 13:43:52 +00:00
Matthias Seitz
067dad79d2 feat: update backfill sync state to pending when we request it (#9865) 2024-07-29 13:13:23 +00:00
Federico Gimenez
365809c079 chore: enable unused deps check in reth-engine-tree (#9861) 2024-07-29 09:54:01 +00:00
nk_ysg
7df42454c0 chore: fix clippy errors (#9845)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-07-27 05:33:29 +00:00
Dan Cline
800e247f97 fix(engine): use provider to initialize persistence state (#9785) 2024-07-26 23:46:59 +00:00
Federico Gimenez
77f5ed1a7b feat: add TreeConfig (#9833) 2024-07-26 15:16:51 +00:00
Federico Gimenez
7475f4f0fa chore: reverse MemoryOverlayStateProvider block order (#9826) 2024-07-26 12:37:02 +00:00
Dan Cline
f734e614d7 chore: use readonly providers in StorageWriter (#9822) 2024-07-26 00:11:17 +00:00
Dan Cline
18ebc5eaee chore: rename to PersistenceHandle::spawn_service (#9824) 2024-07-25 23:52:02 +00:00
Thomas Coratger
aa4cc4843f engine: improve backfill state tracking (#9820) 2024-07-25 22:32:00 +00:00
Matthias Seitz
2766c355e6 feat: invole on_request trackers (#9814)
Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
2024-07-25 18:34:31 +00:00
Matthias Seitz
05135c41ef chore: more misc tracing (#9809) 2024-07-25 16:44:03 +00:00
Miguel
6aea07105a FatalError in EngineHandlerEvent (#9800)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-07-25 13:49:17 +00:00
Federico Gimenez
f74e996c5e chore: move tree module to single file (#9802) 2024-07-25 13:34:30 +00:00
Federico Gimenez
115a58b327 feat: improve in memory block tracking (#9773) 2024-07-25 12:30:11 +00:00
Matthias Seitz
6faa7f9630 chore: add some request instrumentation (#9797) 2024-07-25 12:05:31 +00:00