File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed
cardano-cli/src/Cardano/CLI Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ import Cardano.Api.Consensus (ShelleyGenesisStaking (..))
28
28
import Cardano.Api.Ledger (StrictMaybe (SNothing ))
29
29
import Cardano.Api.Ledger qualified as L
30
30
import Cardano.Api.Shelley
31
- ( AnyStakePoolVerificationKey (.. )
32
- , Hash (.. )
31
+ ( Hash (.. )
33
32
, KESPeriod (KESPeriod )
34
33
, OperationalCertificateIssueCounter (OperationalCertificateIssueCounter )
35
34
, ShelleyGenesis
@@ -151,7 +150,7 @@ runGenesisKeyGenDelegateCmd
151
150
textEnvelopeToJSON (Just certCtrDesc) $
152
151
OperationalCertificateIssueCounter
153
152
initialCounter
154
- (AnyStakePoolNormalVerificationKey $ castVerificationKey vkey) -- Cast to a 'StakePoolKey'
153
+ (castVerificationKey vkey) -- Cast to a 'StakePoolKey'
155
154
where
156
155
skeyDesc , certCtrDesc :: TextEnvelopeDescr
157
156
skeyDesc = " Genesis delegate operator key"
Original file line number Diff line number Diff line change @@ -340,11 +340,7 @@ generateShelleyNodeSecrets shelleyDelegateKeys shelleyGenesisvkeys = do
340
340
where
341
341
eResult = issueOperationalCertificate kesKey (Right delegateKey) (KESPeriod 0 ) counter
342
342
counter =
343
- OperationalCertificateIssueCounter
344
- 0
345
- ( AnyStakePoolNormalVerificationKey . convertFun . getVerificationKey $
346
- delegateKey
347
- )
343
+ OperationalCertificateIssueCounter 0 (convertFun . getVerificationKey $ delegateKey)
348
344
convertFun
349
345
:: VerificationKey GenesisDelegateExtendedKey
350
346
-> VerificationKey StakePoolKey
Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ runQueryKesPeriodInfoCmd
555
555
-- should be.
556
556
let opCertCounterMap = Consensus. getOpCertCounters (Proxy @ (ConsensusProtocol era )) chainDepState
557
557
StakePoolKeyHash blockIssuerHash =
558
- anyStakePoolVerificationKeyHash stakePoolVKey
558
+ verificationKeyHash stakePoolVKey
559
559
560
560
case Map. lookup (coerce blockIssuerHash) opCertCounterMap of
561
561
-- Operational certificate exists in the protocol state
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ runNodeKeyGenColdCmd
82
82
. newExceptT
83
83
$ writeLazyByteStringFile operationalCertificateIssueCounter
84
84
$ textEnvelopeToJSON (Just ocertCtrDesc)
85
- $ OperationalCertificateIssueCounter initialCounter
86
- $ AnyStakePoolNormalVerificationKey
85
+ $ OperationalCertificateIssueCounter
86
+ initialCounter
87
87
vkey
88
88
where
89
89
skeyDesc :: TextEnvelopeDescr
@@ -220,7 +220,13 @@ runNodeNewCounterCmd
220
220
readColdVerificationKeyOrFile coldVkeyFile
221
221
222
222
let ocertIssueCounter =
223
- OperationalCertificateIssueCounter (fromIntegral counter) vkey
223
+ OperationalCertificateIssueCounter
224
+ (fromIntegral counter)
225
+ ( case vkey of
226
+ AnyStakePoolNormalVerificationKey normalStakePoolVKey -> normalStakePoolVKey
227
+ AnyStakePoolExtendedVerificationKey extendedStakePoolVKey ->
228
+ castVerificationKey extendedStakePoolVKey
229
+ )
224
230
225
231
firstExceptT NodeCmdWriteFileError . newExceptT $
226
232
writeLazyByteStringFile (onlyOut mOutFile) $
You can’t perform that action at this time.
0 commit comments