Skip to content

Commit 9792bf5

Browse files
committed
[wip] update Ledger traces
1 parent e0641df commit 9792bf5

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

cardano-node/src/Cardano/Node/Tracing/Era/Shelley.hs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ instance
347347
forMachine dtal = \case
348348
UtxowFailure f -> forMachine dtal f
349349
DelegsFailure f -> forMachine dtal f
350+
(ShelleyWithdrawalsMissingAccounts _withdrawals) -> undefined -- TODO(geo2a)
351+
(ShelleyIncompleteWithdrawals _payload) -> undefined -- TODO(geo2a)
350352

351353
instance
352354
( Api.ShelleyLedgerEra era ~ ledgerera
@@ -610,10 +612,6 @@ instance
610612
mconcat [ "kind" .= String "DelegateeNotRegisteredDELEG"
611613
, "targetPool" .= targetPool
612614
]
613-
forMachine _dtal (WithdrawalsNotInRewardsDELEGS incorrectWithdrawals) =
614-
mconcat [ "kind" .= String "WithdrawalsNotInRewardsCERTS"
615-
, "incorrectWithdrawals" .= unWithdrawals incorrectWithdrawals
616-
]
617615
forMachine dtal (DelplFailure f) = forMachine dtal f
618616

619617

@@ -1077,9 +1075,9 @@ instance
10771075
mconcat [ "kind" .= String "ConwayWithdrawalsMissingAccounts"
10781076
, "withdrawals" .= unWithdrawals missingWithdrawals
10791077
]
1080-
forMachine _ (Conway.ConwayIncompleteWithdrawals incompleteWithdrawals) =
1078+
forMachine _ (Conway.ConwayIncompleteWithdrawals _incompleteWithdrawals) =
10811079
mconcat [ "kind" .= String "ConwayIncompleteWithdrawals"
1082-
, "withdrawals" .= unWithdrawals incompleteWithdrawals
1080+
-- , "withdrawals" .= unWithdrawals incompleteWithdrawals -- TODO(geo2a)
10831081
]
10841082
forMachine _ (Conway.ConwayTxRefScriptsSizeTooBig Mismatch {mismatchSupplied, mismatchExpected}) =
10851083
mconcat [ "kind" .= String "ConwayTxRefScriptsSizeTooBig"

cardano-node/src/Cardano/Tracing/OrphanInstances/Shelley.hs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ instance
327327
) => ToObject (ShelleyLedgerPredFailure ledgerera) where
328328
toObject verb (UtxowFailure f) = toObject verb f
329329
toObject verb (DelegsFailure f) = toObject verb f
330+
toObject _verb (ShelleyWithdrawalsMissingAccounts _withdrawals) = undefined -- TODO(geo2a)
331+
toObject _verb (ShelleyIncompleteWithdrawals _payload) = undefined -- TODO(geo2a)
332+
330333

331334
instance
332335
( ToObject (PredicateFailure (Core.EraRule "CERTS" ledgerera))
@@ -338,9 +341,9 @@ instance
338341
mconcat [ "kind" .= String "ConwayWithdrawalsMissingAccounts"
339342
, "withdrawals" .= unWithdrawals missingWithdrawals
340343
]
341-
toObject _ (Conway.ConwayIncompleteWithdrawals incompleteWithdrawals) =
344+
toObject _ (Conway.ConwayIncompleteWithdrawals _incompleteWithdrawals) =
342345
mconcat [ "kind" .= String "ConwayIncompleteWithdrawals"
343-
, "withdrawals" .= unWithdrawals incompleteWithdrawals
346+
-- , "withdrawals" .= undefined -- TODO(geo2a)
344347
]
345348
toObject _ (Conway.ConwayTxRefScriptsSizeTooBig Mismatch {mismatchSupplied, mismatchExpected}) =
346349
mconcat [ "kind" .= String "ConwayTxRefScriptsSizeTooBig"
@@ -718,10 +721,6 @@ instance
718721
mconcat [ "kind" .= String "DelegateeNotRegisteredDELEG"
719722
, "targetPool" .= targetPool
720723
]
721-
toObject _verb (WithdrawalsNotInRewardsDELEGS incorrectWithdrawals) =
722-
mconcat [ "kind" .= String "WithdrawalsNotInRewardsCERTS"
723-
, "incorrectWithdrawals" .= unWithdrawals incorrectWithdrawals
724-
]
725724
toObject verb (DelplFailure f) = toObject verb f
726725

727726

0 commit comments

Comments
 (0)