Skip to content

Commit

Permalink
IR context reset on resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Jan 9, 2021
1 parent 6436c9a commit c903808
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -69,7 +69,10 @@ object WalletScanLogic extends ScorexLogging {
val context = new ErgoContext(stateContext, transactionContext, inputContext,
LaunchParameters.maxBlockCost, CostTable.interpreterInitCost)

proverOpt.flatMap(_.prove(box.ergoTree, context, testingTx.messageToSign).toOption).isDefined
proverOpt.flatMap { prover =>
prover.IR.resetContext()
prover.prove(box.ergoTree, context, testingTx.messageToSign).toOption
}.isDefined
}

def scanBlockTransactions(registry: WalletRegistry,
Expand Down

0 comments on commit c903808

Please sign in to comment.