Skip to content

Commit

Permalink
implement migratePersistentEpochBakers for P7->P8 (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
drsk0 authored Dec 11, 2024
1 parent 8907fab commit 4241433
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ migratePersistentEpochBakers migration PersistentEpochBakers{..} = do
StateMigrationParametersP2P3 -> NoParam
StateMigrationParametersP3ToP4{} -> NoParam
StateMigrationParametersP4ToP5 -> NoParam
(StateMigrationParametersP5ToP6 P6.StateMigrationData{..}) -> SomeParam $ P6.updateFinalizationCommitteeParameters migrationProtocolUpdateData
(StateMigrationParametersP5ToP6 P6.StateMigrationData{..}) ->
SomeParam $ P6.updateFinalizationCommitteeParameters migrationProtocolUpdateData
StateMigrationParametersP6ToP7{} -> _bakerFinalizationCommitteeParameters
StateMigrationParametersP7ToP8{} -> error "TODO(drsk). github #1223. Implement migratePersistentEpochBakers p7 -> p8"
StateMigrationParametersP7ToP8{} ->
SomeParam $ unOParam $ _bakerFinalizationCommitteeParameters
return
PersistentEpochBakers
{ _bakerInfos = newBakerInfos,
Expand Down

0 comments on commit 4241433

Please sign in to comment.