Skip to content

Commit e493327

Browse files
ana-pantiliecrocodile-dentist
authored andcommitted
WIP: fix ledger stuff
1 parent 8abde9f commit e493327

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

cardano-node/src/Cardano/Node/Protocol/Shelley.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ mkPraosLeaderCredentials
259259
ShelleyLeaderCredentials
260260
{ shelleyLeaderCredentialsCanBeLeader =
261261
PraosCanBeLeader {
262-
praosCanBeLeaderOpCert = opcert,
263262
praosCanBeLeaderColdVerKey = coerceKeyRole vkey,
264-
praosCanBeLeaderSignKeyVRF = vrfKey
263+
praosCanBeLeaderSignKeyVRF = vrfKey,
264+
-- TODO: fix
265+
praosCanBeLeaderCredentialsSource = undefined
265266
},
266-
shelleyLeaderCredentialsInitSignKey = kesKey,
267267
shelleyLeaderCredentialsLabel = "Shelley"
268268
}
269269

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ instance
14751475
, "scripts" .= scripts
14761476
]
14771477
-- TODO: fix
1478-
Conway.ScriptIntegrityHashMismatch _ -> undefined
1478+
Conway.ScriptIntegrityHashMismatch _ _ -> undefined
14791479

14801480
--------------------------------------------------------------------------------
14811481
-- Helper functions

cardano-node/src/Cardano/Node/Tracing/Tracers/ChainDB.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,8 @@ instance ( LogFormatting (Header blk)
399399
, InspectLedger blk
400400
, HasIssuer blk
401401
) => LogFormatting (ChainDB.TraceAddBlockEvent blk) where
402-
forHuman (ChainDB.IgnoreBlockOlderThanK pt) =
403-
"Ignoring block older than K: " <> renderRealPointAsPhrase pt
402+
forHuman (ChainDB.IgnoreBlockOlderThanImmTip pt) =
403+
"Ignoring block older than ImmTip: " <> renderRealPointAsPhrase pt
404404
forHuman (ChainDB.IgnoreBlockAlreadyInVolatileDB pt) =
405405
"Ignoring block already in DB: " <> renderRealPointAsPhrase pt
406406
forHuman (ChainDB.IgnoreInvalidBlock pt _reason) =
@@ -445,8 +445,8 @@ instance ( LogFormatting (Header blk)
445445
"Poppped request from queue to reprocess blocks postponed by LoE."
446446
forHuman ChainDB.ChainSelectionLoEDebug{} =
447447
"ChainDB LoE debug event"
448-
forMachine dtal (ChainDB.IgnoreBlockOlderThanK pt) =
449-
mconcat [ "kind" .= String "IgnoreBlockOlderThanK"
448+
forMachine dtal (ChainDB.IgnoreBlockOlderThanImmTip pt) =
449+
mconcat [ "kind" .= String "IgnoreBlockOlderThanImmTip"
450450
, "block" .= forMachine dtal pt ]
451451
forMachine dtal (ChainDB.IgnoreBlockAlreadyInVolatileDB pt) =
452452
mconcat [ "kind" .= String "IgnoreBlockAlreadyInVolatileDB"
@@ -625,8 +625,8 @@ instance ( LogFormatting (Header blk)
625625

626626

627627
instance MetaTrace (ChainDB.TraceAddBlockEvent blk) where
628-
namespaceFor ChainDB.IgnoreBlockOlderThanK {} =
629-
Namespace [] ["IgnoreBlockOlderThanK"]
628+
namespaceFor ChainDB.IgnoreBlockOlderThanImmTip {} =
629+
Namespace [] ["IgnoreBlockOlderThanImmTip"]
630630
namespaceFor ChainDB.IgnoreBlockAlreadyInVolatileDB {} =
631631
Namespace [] ["IgnoreBlockAlreadyInVolatileDB"]
632632
namespaceFor ChainDB.IgnoreInvalidBlock {} =

cardano-node/src/Cardano/Node/Tracing/Tracers/Consensus.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,9 @@ instance ( LogFormatting selection
20972097
GsmEventLeaveCaughtUp {} -> [preSyncing]
20982098
GsmEventPreSyncingToSyncing {} -> [syncing]
20992099
GsmEventSyncingToPreSyncing {} -> [preSyncing]
2100+
-- TODO: fix
2101+
GsmEventInitializedInCaughtUp {} -> undefined
2102+
GsmEventInitializedInPreSyncing {} -> undefined
21002103
where
21012104
preSyncing = IntM "GSM.state" 0
21022105
syncing = IntM "GSM.state" 1

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ module Cardano.Tracing.OrphanInstances.Byron () where
1212

1313
import Cardano.Api (textShow)
1414

15-
import Ouroboros.Consensus.Protocol.Abstract (SelectView (..))
16-
import Ouroboros.Consensus.Protocol.PBFT (PBft, PBftTiebreakerView(..))
15+
import Ouroboros.Consensus.Protocol.PBFT (PBftTiebreakerView(..))
1716
import Ouroboros.Consensus.Block.EBB (fromIsEBB)
1817
import Cardano.Chain.Block (ABlockOrBoundaryHdr (..), AHeader (..),
1918
ChainValidationError (..), delegationCertificate)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ import Ouroboros.Consensus.Node.NetworkProtocolVersion (BlockNodeToCli
4646
import Ouroboros.Consensus.Protocol.Abstract (ValidationErr, SelectView (svTiebreakerView, svBlockNo), ConsensusProtocol (TiebreakerView))
4747
import Ouroboros.Consensus.TypeFamilyWrappers
4848
import Ouroboros.Consensus.Util.Condense (Condense (..))
49-
import Ouroboros.Consensus.Cardano (ProtocolByron)
5049

5150
import Data.Aeson
5251
import qualified Data.ByteString.Base16 as Base16

0 commit comments

Comments
 (0)