From e4521904cb568f8cc7f7ba8a079ae902bf4f462a Mon Sep 17 00:00:00 2001 From: Jordan Hrycaj Date: Wed, 20 Mar 2024 21:51:08 +0000 Subject: [PATCH] Fix function prototypes --- premix/debug.nim | 2 +- premix/dumper.nim | 4 ++-- premix/hunter.nim | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/premix/debug.nim b/premix/debug.nim index 34fbb559ab..48c4524a5a 100644 --- a/premix/debug.nim +++ b/premix/debug.nim @@ -37,7 +37,7 @@ proc executeBlock(blockEnv: JsonNode, memoryDB: CoreDbRef, blockNumber: UInt256) info "block validation success", validationResult, blockNumber transaction.rollback() - dumpDebuggingMetaData(com, header, body, vmState, false) + vmState.dumpDebuggingMetaData(header, body, false) let fileName = "debug" & $blockNumber & ".json" nimbus = json.parseFile(fileName) diff --git a/premix/dumper.nim b/premix/dumper.nim index 4654e5ec64..a2e9c89f79 100644 --- a/premix/dumper.nim +++ b/premix/dumper.nim @@ -1,5 +1,5 @@ # Nimbus -# Copyright (c) 2020-2023 Status Research & Development GmbH +# Copyright (c) 2020-2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or # http://www.apache.org/licenses/LICENSE-2.0) @@ -43,7 +43,7 @@ proc dumpDebug(com: CommonRef, blockNumber: UInt256) = discard vmState.processBlock(header, body) transaction.rollback() - dumpDebuggingMetaData(captureCom, header, body, vmState, false) + vmState.dumpDebuggingMetaData(header, body, false) proc main() {.used.} = let conf = getConfiguration() diff --git a/premix/hunter.nim b/premix/hunter.nim index cbce1a64c2..d42ec1b9ba 100644 --- a/premix/hunter.nim +++ b/premix/hunter.nim @@ -1,5 +1,5 @@ # Nimbus -# Copyright (c) 2020-2023 Status Research & Development GmbH +# Copyright (c) 2020-2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or # http://www.apache.org/licenses/LICENSE-2.0) @@ -117,7 +117,7 @@ proc huntProblematicBlock(blockNumber: UInt256): ValidationResult = if validationResult != ValidationResult.OK: transaction.rollback() putAncestorsIntoDB(vmState, com.db) - dumpDebuggingMetaData(com, thisBlock.header, thisBlock.body, vmState, false) + vmState.dumpDebuggingMetaData(thisBlock.header, thisBlock.body, false) result = validationResult