Skip to content

Commit 450a849

Browse files
committed
undo ioref bullshit
1 parent 6f2e06c commit 450a849

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cardano-testnet/src/Testnet/Defaults.hs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ defaultConwayGenesis = do
177177
, cgInitialDReps = mempty
178178
}
179179

180-
-- TODO REMOVE
181-
nCounter :: IORef Int
182-
nCounter = unsafePerformIO $ newIORef 0
183-
{-# NOINLINE nCounter #-}
184-
185180
-- | The only era supported by cardano-testnet for the moment.
186181
-- It's important to keep the era parameterization everywhere, for ease of development
187182
-- when new eras roll out.
@@ -309,13 +304,12 @@ defaultYamlHardforkViaConfig sbe =
309304
]
310305

311306
traceOptions = do
312-
let n = unsafePerformIO . atomicModifyIORef nCounter $ \n' -> (n'+1, n')
313307
Aeson.object
314308
[ "" .= Aeson.object
315309
[ "backends" .= Aeson.Array
316310
[ "EKGBackend"
317311
, "Forwarder"
318-
, fromString $ "PrometheusSimple suffix 0.0.0.0 " <> show (12798 + n - 1)
312+
, fromString $ "PrometheusSimple suffix 0.0.0.0 12798"
319313
, "Stdout HumanFormatColoured"
320314
]
321315
]

0 commit comments

Comments
 (0)