diff --git a/nimbus/core/chain/persist_blocks.nim b/nimbus/core/chain/persist_blocks.nim index 2c83b508b..7a2dd2db6 100644 --- a/nimbus/core/chain/persist_blocks.nim +++ b/nimbus/core/chain/persist_blocks.nim @@ -124,7 +124,8 @@ proc persistBlocksImpl(c: ChainRef; headers: openArray[BlockHeader]; vmState.processBlock(header, body) else: ValidationResult.OK - when not defined(release): + + when defined(nimbusDumpDebuggingMetaData): if validationResult == ValidationResult.Error and body.transactions.calcTxRoot == header.txRoot: vmState.dumpDebuggingMetaData(header, body)