File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ import qualified Cardano.Ledger.Conway.Rules as SL
5353 )
5454import qualified Cardano.Ledger.Conway.State as CG
5555import Cardano.Ledger.Dijkstra (DijkstraEra )
56+ import qualified Cardano.Ledger.Dijkstra.Rules as Dijkstra
57+ import qualified Cardano.Ledger.Dijkstra.Rules as SL
58+ (DijkstraLedgerPredFailure (.. )
59+ )
5660import Cardano.Ledger.Mary (MaryEra )
5761import Cardano.Ledger.Shelley (ShelleyEra )
5862import qualified Cardano.Ledger.Shelley.API as SL
@@ -317,4 +321,14 @@ instance SupportsTwoPhaseValidation ConwayEra where
317321 _ -> False
318322
319323instance SupportsTwoPhaseValidation DijkstraEra where
320- isIncorrectClaimedFlag _ = error " TODO(ledger)"
324+ isIncorrectClaimedFlag _ = \ case
325+ SL. DijkstraUtxowFailure
326+ ( Dijkstra. UtxoFailure
327+ ( Dijkstra. UtxosFailure
328+ ( Conway. ValidationTagMismatch
329+ (Alonzo. IsValid _claimedFlag)
330+ _validationErrs
331+ )
332+ )
333+ ) -> True
334+ _ -> False
You can’t perform that action at this time.
0 commit comments