@@ -131,6 +131,7 @@ hprop_constitutional_committee_add_new = integrationWorkspace "constitutional-co
131131 createStakeKeyRegistrationCertificate
132132 tempAbsPath (AnyShelleyBasedEra sbe) (verificationKey stakeKeys) keyDeposit stakeCertFp
133133
134+
134135 stakeCertTxBodyFp <- H. note $ work </> " stake.registration.txbody"
135136 stakeCertTxSignedFp <- H. note $ work </> " stake.registration.tx"
136137
@@ -153,14 +154,20 @@ hprop_constitutional_committee_add_new = integrationWorkspace "constitutional-co
153154 , " --signing-key-file" , signingKeyFp stakeKeys
154155 , " --out-file" , stakeCertTxSignedFp
155156 ]
157+ -- TODO: Left off here. No certificate was in transaction!
158+ stakeCertTx <- execCli' execConfig
159+ [" debug" , " transaction"
160+ , " view" , " --output-json" , " --tx-file" , stakeCertTxSignedFp
161+ ]
156162
163+ H. note_ $ " Stake registration transaction: " <> stakeCertTx
157164 void $ execCli' execConfig
158165 [ eraName, " transaction" , " submit"
159166 , " --tx-file" , stakeCertTxSignedFp
160167 ]
161168
162169 -- make sure that stake registration cert gets into a block
163- _ <- waitForBlocks epochStateView 1
170+ _ <- waitForBlocks epochStateView 15
164171
165172 minGovActDeposit <- getMinGovActionDeposit epochStateView ceo
166173
@@ -187,6 +194,20 @@ hprop_constitutional_committee_add_new = integrationWorkspace "constitutional-co
187194 txbodyFp <- H. note $ work </> " tx.body"
188195 txin1' <- findLargestUtxoForPaymentKey epochStateView sbe wallet0
189196
197+
198+
199+ void $ execCli' execConfig
200+ [ eraName, " stake-address" , " key-hash"
201+ , " --stake-verification-key-file" , verificationKeyFp stakeKeys
202+ , " --out-file" , gov </> " stake-hash.addr"
203+ ]
204+
205+ stakeKeyHash <- H. readFile $ gov </> " stake-hash.addr"
206+
207+ H. note_ $ " Stake key hash:" <> stakeKeyHash
208+
209+
210+
190211 -- Create temporary HTTP server with files required by the call to `cardano-cli`
191212 -- In this case, the server emulates an IPFS gateway
192213 serveFilesWhile
0 commit comments