Only produce debugging metadata when nimbusDumpDebuggingMetaData is defined (#2275)
This commit is contained in:
parent
cfbbcda4f7
commit
0f0ac0bc14
|
@ -124,7 +124,8 @@ proc persistBlocksImpl(c: ChainRef; headers: openArray[BlockHeader];
|
||||||
vmState.processBlock(header, body)
|
vmState.processBlock(header, body)
|
||||||
else:
|
else:
|
||||||
ValidationResult.OK
|
ValidationResult.OK
|
||||||
when not defined(release):
|
|
||||||
|
when defined(nimbusDumpDebuggingMetaData):
|
||||||
if validationResult == ValidationResult.Error and
|
if validationResult == ValidationResult.Error and
|
||||||
body.transactions.calcTxRoot == header.txRoot:
|
body.transactions.calcTxRoot == header.txRoot:
|
||||||
vmState.dumpDebuggingMetaData(header, body)
|
vmState.dumpDebuggingMetaData(header, body)
|
||||||
|
|
Loading…
Reference in New Issue