We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c2ff9 commit f119442Copy full SHA for f119442
ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/PerasCertDB/StateMachine.hs
@@ -116,7 +116,10 @@ instance StateModel Model where
116
action ->
117
model.open && case action of
118
CloseDB -> True
119
- -- Do not add equivocating certificates.
+ -- Equivocating certificates are not possible by construction,
120
+ -- so we should ensure that adding a certificate with the same round
121
+ -- number but different content is rejected.
122
+ -- See https://tweag.github.io/cardano-peras/peras-design.pdf#subsection.2.2.2
123
AddCert cert -> all p model.certs
124
where
125
p cert' = getPerasCertRound cert /= getPerasCertRound cert' || cert == cert'
0 commit comments