Skip to content

Commit

Permalink
Added note about voting rules to random-fork.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwbush authored Feb 8, 2024
1 parent 1f4762b commit e529d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion random-forks/src/Peras/RandomForks/Peer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ nextSlot gen protocol@Protocol{roundDuration, votingWindow} slot name state@Peer
vrfOutput = vrfOutput'
, slotLeader = slotLeader'
, committeeMember = committeeMember'
, preferredChain = if committeeMember' && slot `mod` roundDuration == 0
, preferredChain = if committeeMember' && slot `mod` roundDuration == 0 -- FIXME: Not faithful to the Peras voting rules.
then recordVote (slot `div` roundDuration) name (slot - snd votingWindow, slot - fst votingWindow) preferredChain''
else preferredChain''
, danglingVotes = danglingVotes'
Expand Down

0 comments on commit e529d37

Please sign in to comment.