Skip to content

Rebasing baking account MR over context with trees

Jun Furuse requested to merge tezos/tezos:master into jun/b-a-rebase-over-trees

This is a merge of 2 MRs:

  • !2457 : context with trees
  • !2458 : baking accounts

!2457 has an optimized nested fold over contexts which speeds up the migration of !2458 tremendously. It takes only 4 minutes in my desktop.

The speed is equivalent with my optimization (https://gitlab.com/dailambda/tezos/-/tree/jun/b-a-optimize) using Context.Tree explicitly in init_storage.ml. I think my optimization is no longer necessary.

Now none uses Raw_context.Tree but let's keep them as they are: I think it may be useful in future when someone wants to perform complex context processing.

Merge request reports