Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
limemloh committed Nov 15, 2023
1 parent 5fb494b commit 9f111f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concordium-base
4 changes: 2 additions & 2 deletions concordium-consensus/src/Concordium/ProtocolUpdate/P7.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ updates = HM.fromList [(Reboot.updateHash, return Reboot)]
checkUpdate :: ProtocolUpdate -> Either String Update
checkUpdate ProtocolUpdate{..} = case HM.lookup puSpecificationHash updates of
Nothing -> Left "Specification hash does not correspond to a known protocol update."
Just g -> case runGet g puSpecificationAuxiliaryData of
Just updateGet -> case runGet updateGet puSpecificationAuxiliaryData of
Left err -> Left $! "Could not deserialize auxiliary data: " ++ err
Right r -> return r
Right update -> return update

-- | Construct the genesis data for a P7 update.
updateRegenesis ::
Expand Down

0 comments on commit 9f111f5

Please sign in to comment.