From 2cb6bea9ec72fd2fa6eefe459c405030900cabda Mon Sep 17 00:00:00 2001 From: Jordan Millar Date: Mon, 30 Mar 2026 10:27:06 -0400 Subject: [PATCH] Fix bulk credentials path to construct PraosCredentialsSource The bulk credential parsing was calling mkPraosLeaderCredentials with the old applicative-style signature. Update parseShelleyCredentials to destructure OperationalCertificate and KesSigningKey, build a PraosCredentialsUnsound, and pass it to mkPraosLeaderCredentials, mirroring the singleton credential path. --- cardano-node/src/Cardano/Node/Protocol/Shelley.hs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cardano-node/src/Cardano/Node/Protocol/Shelley.hs b/cardano-node/src/Cardano/Node/Protocol/Shelley.hs index d9d6dc6db68..c80f15a9363 100644 --- a/cardano-node/src/Cardano/Node/Protocol/Shelley.hs +++ b/cardano-node/src/Cardano/Node/Protocol/Shelley.hs @@ -240,10 +240,11 @@ readLeaderCredentialsBulk ProtocolFilepaths { shelleyBulkCredsFile = mfp } = :: ShelleyCredentials -> ExceptT PraosLeaderCredentialsError IO (ShelleyLeaderCredentials StandardCrypto) parseShelleyCredentials ShelleyCredentials { scCert, scVrf, scKes } = do - mkPraosLeaderCredentials - <$> parseEnvelope scCert - <*> parseEnvelope scVrf - <*> parseEnvelope scKes + OperationalCertificate opCert vkey <- parseEnvelope scCert + KesSigningKey kesKey <- parseEnvelope scKes + let credentialsSource = PraosCredentialsUnsound opCert kesKey + vrfSKey <- parseEnvelope scVrf + pure $ mkPraosLeaderCredentials credentialsSource vkey vrfSKey readBulkFile :: Maybe FilePath