Skip to content

Commit

Permalink
Fix function prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfh committed Mar 20, 2024
1 parent 0957b9b commit e452190
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion premix/debug.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions premix/dumper.nim
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions premix/hunter.nim
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit e452190

Please sign in to comment.