You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
The existing tests failed to test the validity of the key signing each
block and there were no other tests for that. Since we are in the process
of adding two new consensus validation algorithms (OBDT strict and lenient)
we should add this now.
, sformat ("ObftStrict: slot leader from schedule, "%build%", is different from slot leader who published block, "%build%". slotIndex: "%build%", leaders: "%shown)
219
-
(scheduleSlotLeader ldrs)
220
-
blockSlotLeader)
221
-
]
220
+
if isNothing (scheduleSlotLeader ldrs)
221
+
then [ (isJust (scheduleSlotLeader ldrs), "ObftStrict: scheduled slot leader is missing") ]
222
+
else
223
+
[ ( Just blockSlotLeader == scheduleSlotLeader ldrs
224
+
, sformat ("ObftStrict: slot leader from schedule, "%build%", is different from slot leader who published block, "%build%".")
, sformat ("Original: slot leader from schedule, "%build%", is different from slot leader who published block, "%build%". slotIndex: "%build%", leaders: "%shown)
226
-
(scheduleSlotLeader ldrs)
227
-
blockSlotLeader)
228
-
]
231
+
if isNothing (scheduleSlotLeader ldrs)
232
+
then [ (isJust (scheduleSlotLeader ldrs), "ObftStrict: scheduled slot leader is missing") ]
233
+
else
234
+
[ ( Just blockSlotLeader == scheduleSlotLeader ldrs
235
+
, sformat ("Original: slot leader from schedule, "%build%", is different from slot leader who published block, "%build%".")
236
+
(scheduleSlotLeader ldrs)
237
+
blockSlotLeader
238
+
)
239
+
]
229
240
where
230
241
-- Determine whether the leader is allowed to mint a block based on
0 commit comments