Verified Commit b9408be7 authored by Grégoire Henry's avatar Grégoire Henry Committed by Marco Stronati

Alpha/Delegation/Migration: reassign rolls

This patch is part of the migration code from `alpha_003` to `athens_004`.

It performs the roll size update to 8000 tokens.
parent 5e2b9790
......@@ -45,6 +45,9 @@ let prepare_first_block ctxt ~typecheck ~level ~timestamp ~fitness =
Vote_storage.freeze_listings ctxt >>=? fun ctxt ->
return ctxt
| Alpha_previous ->
(* Reallocated rolls to delegates, since rolls are now 8k tez. *)
Roll_storage.update_tokens_per_roll ctxt
Constants_repr.default.tokens_per_roll >>=? fun ctxt ->
(* Update hard gas limits to the new defaults. *)
Raw_context.patch_constants ctxt begin fun constants ->
{ constants with
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment