Commit Graph

164 Commits

Author SHA1 Message Date
60bc403f08 fix(tree): remove_blocks fixes, return hash and number in persistence task (#10678) 2024-09-05 16:35:16 +00:00
6f086d1060 chore(trie): clean up state root methods (#10598) 2024-08-28 14:41:29 +00:00
29b02cc0e1 chore(trie): StorageRootProvider (#10592) 2024-08-28 12:56:47 +00:00
cf7416e2f2 chore(trie): remove plain state proof variant (#10593) 2024-08-28 12:00:46 +00:00
498ced8be9 fix(engine): memory overlay hashed storage root (#10543) 2024-08-26 18:31:12 +00:00
c4a231335a perf(engine): lazy load overlay trie state (#10541) 2024-08-26 13:11:54 +00:00
38087a09f9 perf(trie): remove some clones (#10406) 2024-08-26 12:13:59 +00:00
29058ad7ee clippy: add cloned_instead_of_copied clippy lint (#10530)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Oliver <onbjerg@users.noreply.github.com>
2024-08-26 09:04:19 +00:00
c788b6a585 fix: transaction_by_hash_with_meta implementation of CanonicalInMemoryState (#10501) 2024-08-24 18:56:13 +00:00
0791b9eac9 refactor: replace ForkChoiceStream type with generic stream type (#10458) 2024-08-23 17:24:58 +00:00
64fb41cabf fix link typo on BlockState (#10431) 2024-08-21 21:32:10 +00:00
d9936a96e2 Use more appropriate names for forkchoice subscriptions (#10401) 2024-08-21 08:47:33 +00:00
aa705b2f42 chain-state: rm Arc wrapper around BlockState for pending_state (#10408) 2024-08-21 05:21:26 +00:00
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
6898c30a65 feat: add subscribe_safe_block & subscribe_finalized_block to CanonicalInMemoryState (#10317) 2024-08-20 07:03:14 +00:00
7f6aa433c9 feat: light cleaning (#10385) 2024-08-20 04:26:29 +00:00
9bed8cf466 feat: improve connecting downloaded blocks (#10368) 2024-08-17 23:49:53 +00:00
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
1edfbd7a68 chain-state: derive Default for ExecutedBlock (#10372) 2024-08-17 16:43:11 +00:00
a0cf68ead8 fix(engine): aggregate state for chain notification (#10295) 2024-08-15 01:04:39 +00:00
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
cdf5d8e9ee Add generic BlockStateNotificationStream type for pending, safe, finalized watchers (#10249) 2024-08-10 14:02:49 +00:00
faa38cec4d fix: TreeState::on_new_head fork and reorg handling (#10232) 2024-08-10 09:45:45 +00:00
685398d5f6 refactor: derive PartialEq for CanonStateNotification (#10195) 2024-08-08 12:22:53 +00:00
faff24b683 Convert pending block to a watch channel (#10203) 2024-08-08 11:11:50 +00:00
a706206695 feat: add block_body_indices for BlockchainProvider2 (#10106) 2024-08-07 18:13:20 +00:00
fbebde6b2e fix: only use tags if they have been set (#10150) 2024-08-06 19:21:39 +00:00
680ca6b73f fix: use actual latest state for BlockchainProvider2 (#10137) 2024-08-06 15:06:49 +00:00
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
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
6f8cba6bc0 feat: add metrics for in-memory state (#10085) 2024-08-05 15:16:08 +00:00
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
d3ae2b7d73 feat: use BTreemap for block numbers in CanonicalInMemoryState (#10040) 2024-08-02 19:02:37 +00:00
e9870e0d6c feat: support in memory lookups in BlockchainProvider2 (#9999) 2024-08-02 16:14:51 +00:00
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
0a1be8ca5b test: add engine tree test, FCU triggers reorg with all the blocks present (#9943) 2024-08-01 15:18:50 +00:00
5e6ae6e94b feat(trie): expose trie witness on proof provider (#9915) 2024-08-01 13:51:38 +00:00
d16ec0de51 docs: improving docs from TestBlockBuilder (#9936) 2024-07-31 14:53:23 +00:00
f9ed57d6a6 test: add TestBlockBuilder (#9925) 2024-07-31 11:50:53 +00:00
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
700e660337 fix(tree): hashed state aggregation (#9874) 2024-07-29 20:32:51 +00:00
0b91e03ff4 feat: state housekeeping after backfill finished (#9870) 2024-07-29 17:38:20 +00:00
0b9e9f46c4 test: add new test functions for engine tree (#9869) 2024-07-29 16:16:10 +00:00
41c34608b0 chore: misc canon docs and pending block update (#9832) 2024-07-26 15:14:19 +00:00
6d036cd95b perf(trie): pass owned hashed state to trie methods (#9837) 2024-07-26 14:55:02 +00:00
206ca8153d feat: add CanonicalInMemoryState::set_pending_block (#9834) 2024-07-26 13:59:21 +00:00
7475f4f0fa chore: reverse MemoryOverlayStateProvider block order (#9826) 2024-07-26 12:37:02 +00:00
ac2853884a feat: integrate memory overlay in canonical state (#9817) 2024-07-26 09:51:11 +00:00
05135c41ef chore: more misc tracing (#9809) 2024-07-25 16:44:03 +00:00