Commit Graph

53 Commits

Author SHA1 Message Date
Jennifer
d9936a96e2 Use more appropriate names for forkchoice subscriptions (#10401) 2024-08-21 08:47:33 +00:00
Thomas Coratger
aa705b2f42 chain-state: rm Arc wrapper around BlockState for pending_state (#10408) 2024-08-21 05:21:26 +00:00
Thomas Coratger
5530fb0680 chain-state: add unit test for set_pending_block (#10363)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-08-20 08:27:10 +00:00
unitezen
6898c30a65 feat: add subscribe_safe_block & subscribe_finalized_block to CanonicalInMemoryState (#10317) 2024-08-20 07:03:14 +00:00
greged93
7f6aa433c9 feat: light cleaning (#10385) 2024-08-20 04:26:29 +00:00
Federico Gimenez
9bed8cf466 feat: improve connecting downloaded blocks (#10368) 2024-08-17 23:49:53 +00:00
Thomas Coratger
33985d2892 chain-state: add unit test for to_chain_notification (#10373)
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
2024-08-17 17:03:53 +00:00
Thomas Coratger
1edfbd7a68 chain-state: derive Default for ExecutedBlock (#10372) 2024-08-17 16:43:11 +00:00
Roman Krasiuk
a0cf68ead8 fix(engine): aggregate state for chain notification (#10295) 2024-08-15 01:04:39 +00:00
Roman Krasiuk
ac3d62ba02 perf(tree): re-use intermediate nodes (#9836) 2024-08-13 19:57:22 +00:00
Roy
25ab85c5a7 feat: ForkChoiceNotifications for BlockchainProvider and NoopProvider (#10231)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-08-10 14:35:42 +00:00
Jennifer
cdf5d8e9ee Add generic BlockStateNotificationStream type for pending, safe, finalized watchers (#10249) 2024-08-10 14:02:49 +00:00
Federico Gimenez
faa38cec4d fix: TreeState::on_new_head fork and reorg handling (#10232) 2024-08-10 09:45:45 +00:00
Oliver
685398d5f6 refactor: derive PartialEq for CanonStateNotification (#10195) 2024-08-08 12:22:53 +00:00
Jennifer
faff24b683 Convert pending block to a watch channel (#10203) 2024-08-08 11:11:50 +00:00
Dan Cline
a706206695 feat: add block_body_indices for BlockchainProvider2 (#10106) 2024-08-07 18:13:20 +00:00
Dan Cline
fbebde6b2e fix: only use tags if they have been set (#10150) 2024-08-06 19:21:39 +00:00
Dan Cline
680ca6b73f fix: use actual latest state for BlockchainProvider2 (#10137) 2024-08-06 15:06:49 +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
Parikalp Bhardwaj
e1406d62ce Add in-memory block TD lookup support (#10052)
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
2024-08-05 16:24:08 +00:00
Oliver
6f8cba6bc0 feat: add metrics for in-memory state (#10085) 2024-08-05 15:16:08 +00:00
Miguel Tavares
f0df06f313 feat: add empty state method for tests (#10045)
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
2024-08-05 09:45:50 +00:00
Miguel Tavares
d3ae2b7d73 feat: use BTreemap for block numbers in CanonicalInMemoryState (#10040) 2024-08-02 19:02:37 +00:00
Federico Gimenez
e9870e0d6c feat: support in memory lookups in BlockchainProvider2 (#9999) 2024-08-02 16:14:51 +00:00
nk_ysg
44028076ff feat : add storage_root provider function for account (#9659)
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
2024-08-02 07:19:12 +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
Roman Krasiuk
5e6ae6e94b feat(trie): expose trie witness on proof provider (#9915) 2024-08-01 13:51:38 +00:00
Miguel
d16ec0de51 docs: improving docs from TestBlockBuilder (#9936) 2024-07-31 14:53:23 +00:00
Federico Gimenez
f9ed57d6a6 test: add TestBlockBuilder (#9925) 2024-07-31 11:50:53 +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
Roman Krasiuk
700e660337 fix(tree): hashed state aggregation (#9874) 2024-07-29 20:32:51 +00:00
Matthias Seitz
0b91e03ff4 feat: state housekeeping after backfill finished (#9870) 2024-07-29 17:38:20 +00:00
Federico Gimenez
0b9e9f46c4 test: add new test functions for engine tree (#9869) 2024-07-29 16:16:10 +00:00
Matthias Seitz
41c34608b0 chore: misc canon docs and pending block update (#9832) 2024-07-26 15:14:19 +00:00
Roman Krasiuk
6d036cd95b perf(trie): pass owned hashed state to trie methods (#9837) 2024-07-26 14:55:02 +00:00
Matthias Seitz
206ca8153d feat: add CanonicalInMemoryState::set_pending_block (#9834) 2024-07-26 13:59:21 +00:00
Federico Gimenez
7475f4f0fa chore: reverse MemoryOverlayStateProvider block order (#9826) 2024-07-26 12:37:02 +00:00
Federico Gimenez
ac2853884a feat: integrate memory overlay in canonical state (#9817) 2024-07-26 09:51:11 +00:00
Matthias Seitz
05135c41ef chore: more misc tracing (#9809) 2024-07-25 16:44:03 +00:00
Federico Gimenez
115a58b327 feat: improve in memory block tracking (#9773) 2024-07-25 12:30:11 +00:00
Federico Gimenez
6b1fbf82b7 chore: move MemoryOverlayStateProvider to chain-state crate (#9779) 2024-07-24 19:34:06 +00:00
Matthias Seitz
d395df29fc feat: add missing canonical checks for safe+finalized block (#9765) 2024-07-24 15:52:20 +00:00
Matthias Seitz
859321acd4 feat: remove persisted blocks from memory (#9768) 2024-07-24 15:23:50 +00:00
Matthias Seitz
9c7107bc6d test: use native test macros (#9766) 2024-07-24 14:45:53 +00:00
Matthias Seitz
7ad93d5ae4 feat: perform canonical in memory state update (#9763) 2024-07-24 14:17:52 +00:00
Matthias Seitz
212196522b docs: some additional in mem docs (#9759) 2024-07-24 13:43:35 +00:00
Matthias Seitz
fa1bbe44d6 feat: add parent blockstate to blockstate (#9755) 2024-07-24 10:39:43 +00:00
Matthias Seitz
5a9de035bf fix: properly convert canon chain event (#9736) 2024-07-23 17:55:07 +00:00
Matthias Seitz
a6f6346ffe feat: emit chain notifications (#9732) 2024-07-23 17:36:24 +00:00
Matthias Seitz
545bf99f76 chore: convert block to named field (#9733) 2024-07-23 17:36:14 +00:00