Skip to content

Commit

Permalink
hide traces
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Sep 26, 2023
1 parent 89324bd commit 60447b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cardano-api/internal/Cardano/Api/Fees.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,8 @@ makeTransactionBodyAutoBalance systemstart history lpp@(LedgerProtocolParameters
-- that simply creates a transaction body because we have already
-- validated the transaction body earlier within makeTransactionBodyAutoBalance
createAndValidateTransactionBody finalTxBodyContent
trace ">>>> F1048" $ trace (T.unpack $ pShow txbody3) $ return (BalancedTxBody finalTxBodyContent txbody3 (TxOut changeaddr balance TxOutDatumNone ReferenceScriptNone) fee)
-- trace ">>>> F1048" $ trace (T.unpack $ pShow txbody3) $
return (BalancedTxBody finalTxBodyContent txbody3 (TxOut changeaddr balance TxOutDatumNone ReferenceScriptNone) fee)
where
-- Essentially we check for the existence of collateral inputs. If they exist we
-- create a fictitious collateral return output. Why? Because we need to put dummy values
Expand Down
3 changes: 2 additions & 1 deletion cardano-api/internal/Cardano/Api/Tx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@ makeShelleyBasedBootstrapWitness :: forall era.
makeShelleyBasedBootstrapWitness sbe nwOrAddr txbody (ByronSigningKey sk) =
ShelleyBootstrapWitness sbe $
-- Byron era witnesses were weird. This reveals all that weirdness.
trace "API 665" $ traceShowId $ Shelley.BootstrapWitness {
-- trace "API 665" $ traceShowId $
Shelley.BootstrapWitness {
Shelley.bwKey = vk,
Shelley.bwSig = signature,
Shelley.bwChainCode = chainCode,
Expand Down
7 changes: 5 additions & 2 deletions cardano-api/internal/Cardano/Api/TxBody.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3884,7 +3884,9 @@ makeShelleyTransactionBody sbe@ShelleyBasedEraBabbage
txScriptValidity
where
witnesses :: [(ScriptWitnessIndex, AnyScriptWitness BabbageEra)]
witnesses = collectTxBodyScriptWitnesses sbe $ trace ">>>> TXB 3886" $ traceWith (T.unpack . pShow) txbodycontent
witnesses = collectTxBodyScriptWitnesses sbe $
-- trace ">>>> TXB 3886" $ traceWith (T.unpack . pShow)
txbodycontent

scripts :: [Ledger.Script StandardBabbage]
scripts = List.nub $ catMaybes
Expand Down Expand Up @@ -3912,7 +3914,8 @@ makeShelleyTransactionBody sbe@ShelleyBasedEraBabbage

redeemers :: Alonzo.Redeemers StandardBabbage
redeemers =
trace "WITT" $ traceWith (T.unpack . pShow ) $ Alonzo.Redeemers $
-- trace "WITT" $ traceWith (T.unpack . pShow ) $
Alonzo.Redeemers $
Map.fromList
[ (toAlonzoRdmrPtr idx, (toAlonzoData d, toAlonzoExUnits e))
| (idx, AnyScriptWitness
Expand Down

0 comments on commit 60447b4

Please sign in to comment.