Skip to content

Commit 3b71488

Browse files
committed
fix
1 parent ab8a281 commit 3b71488

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

core/vm/interpreter.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
234234
}()
235235
}
236236

237-
sPc := uint64(0)
237+
sPc_ := uint64(0)
238238

239239
// shortcut v1
240240
start := time.Now()
@@ -273,6 +273,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
273273
}
274274
}
275275
}
276+
sPc_ = sPc
276277
}
277278
in.evm.ShortcutDuration += time.Since(start)
278279

@@ -329,7 +330,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
329330
// the execution of one of the operations or until the done flag is set by the
330331
// parent context.
331332
for {
332-
if pc == sPc && pc != 0 {
333+
if pc == sPc_ && pc != 0 {
333334
in.evm.ReplacedDuration += time.Since(start)
334335
}
335336
if debug {

0 commit comments

Comments
 (0)