Skip to content

Commit

Permalink
Update comment when electing a new dynamo
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez committed Apr 30, 2024
1 parent 709ba7f commit 984117b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,8 @@ electNewDynamo context = do
Just (dynId, dynamo) -> do
fragment <- csCandidate <$> readTVar (cschState dynamo)
mJumpInfo <- readTVar (cschJumpInfo dynamo)
-- We assume no rollbacks are possible earlier than the anchor of the
-- candidate fragment
-- If there is no jump info, the dynamo must be just starting and
-- there is no need to set the intersection of the ChainSync server.
let dynamoInitState = maybe DynamoStarted DynamoStarting mJumpInfo
writeTVar (cschJumping dynamo) $
Dynamo dynamoInitState $ pointSlot $ AF.headPoint fragment
Expand Down

0 comments on commit 984117b

Please sign in to comment.