File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -246,9 +246,9 @@ definition doVote :: "Node \<Rightarrow> Slot \<Rightarrow> Term \<Rightarrow> T
246
246
firstUncommittedSlot <- getFirstUncommittedSlot;
247
247
when (voteFirstUncommittedSlot > firstUncommittedSlot) (throw IllegalArgumentException);
248
248
249
- lastAcceptedTermInSlot <- getLastAcceptedTerm;
249
+ lastAcceptedTerm <- getLastAcceptedTerm;
250
250
when (voteFirstUncommittedSlot = firstUncommittedSlot
251
- \<and> voteLastAcceptedTerm > lastAcceptedTermInSlot )
251
+ \<and> voteLastAcceptedTerm > lastAcceptedTerm )
252
252
(throw IllegalArgumentException);
253
253
254
254
modifyJoinVotes (insert sourceNode);
@@ -259,8 +259,7 @@ definition doVote :: "Node \<Rightarrow> Slot \<Rightarrow> Term \<Rightarrow> T
259
259
let electionWon' = card (joinVotes \<inter> currentVotingNodes) * 2 > card currentVotingNodes;
260
260
setElectionWon electionWon';
261
261
publishPermitted <- getPublishPermitted;
262
- lastAcceptedTermInSlot <- getLastAcceptedTerm;
263
- when (electionWon' \<and> publishPermitted \<and> lastAcceptedTermInSlot \<noteq> NO_TERM) (do {
262
+ when (electionWon' \<and> publishPermitted \<and> lastAcceptedTerm \<noteq> NO_TERM) (do {
264
263
setPublishPermitted False;
265
264
266
265
lastAcceptedValue <- gets lastAcceptedValue; (* NB must be present since lastAcceptedTermInSlot \<noteq> NO_TERM *)
You can’t perform that action at this time.
0 commit comments