Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
fdecc111
Commit
fdecc111
authored
Feb 19, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temp fix for #342
parent
487c5cc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vm.go
vm/vm.go
+3
-2
No files found.
vm/vm.go
View file @
fdecc111
...
@@ -266,7 +266,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
...
@@ -266,7 +266,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
base
.
Sub
(
Pow256
,
stack
.
Pop
())
.
Sub
(
base
,
ethutil
.
Big1
)
base
.
Sub
(
Pow256
,
stack
.
Pop
())
.
Sub
(
base
,
ethutil
.
Big1
)
// Not needed
// Not needed
//
base = U256(base)
base
=
U256
(
base
)
stack
.
Push
(
base
)
stack
.
Push
(
base
)
case
LT
:
case
LT
:
...
@@ -532,7 +532,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
...
@@ -532,7 +532,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
case
NUMBER
:
case
NUMBER
:
number
:=
self
.
env
.
BlockNumber
()
number
:=
self
.
env
.
BlockNumber
()
stack
.
Push
(
number
)
stack
.
Push
(
U256
(
number
)
)
self
.
Printf
(
" => 0x%x"
,
number
.
Bytes
())
self
.
Printf
(
" => 0x%x"
,
number
.
Bytes
())
case
DIFFICULTY
:
case
DIFFICULTY
:
...
@@ -676,6 +676,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
...
@@ -676,6 +676,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
gas
:=
stack
.
Pop
()
gas
:=
stack
.
Pop
()
// Pop gas and value of the stack.
// Pop gas and value of the stack.
value
,
addr
:=
stack
.
Popn
()
value
,
addr
:=
stack
.
Popn
()
value
=
U256
(
value
)
// Pop input size and offset
// Pop input size and offset
inSize
,
inOffset
:=
stack
.
Popn
()
inSize
,
inOffset
:=
stack
.
Popn
()
// Pop return size and offset
// Pop return size and offset
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment