Skip to content

Commit

Permalink
Merge #3436
Browse files Browse the repository at this point in the history
3436: tx-generator: set default: query local node for protocol parameters r=MarcFontaine a=MarcFontaine

Initialize the tx-generator with a default mode for the protocol parameters.
The default is to query the local node for the protocol parameters.

Co-authored-by: MarcFontaine <[email protected]>
  • Loading branch information
iohk-bors[bot] and MarcFontaine authored Dec 13, 2021
2 parents 04f50a1 + 48db807 commit c6025ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bench/tx-generator/src/Cardano/Benchmarking/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Cardano.Benchmarking.Tracer (createDebugTracers)
import Cardano.Benchmarking.Script.Action
import Cardano.Benchmarking.Script.Aeson (parseScriptFileAeson)
import Cardano.Benchmarking.Script.AesonLegacy (parseScriptFileLegacy)
import Cardano.Benchmarking.Script.Core (initGlobalWallet)
import Cardano.Benchmarking.Script.Core (initGlobalWallet, setProtocolParameters)
import Cardano.Benchmarking.Script.Env
import Cardano.Benchmarking.Script.Store
import Cardano.Benchmarking.Script.Types
Expand All @@ -41,8 +41,9 @@ runScript script iom = runActionM execScript iom >>= \case
where
cleanup s a = void $ runActionMEnv s a iom
execScript = do
initGlobalWallet
set BenchTracers createDebugTracers
initGlobalWallet
setProtocolParameters QueryLocalNode
forM_ script action

shutDownLogging :: ActionM ()
Expand Down

0 comments on commit c6025ed

Please sign in to comment.