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
05fd1daf
Commit
05fd1daf
authored
Dec 12, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additional log
parent
0d57ca48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
common.go
vm/common.go
+1
-1
vm_debug.go
vm/vm_debug.go
+2
-3
No files found.
vm/common.go
View file @
05fd1daf
...
@@ -48,7 +48,7 @@ var (
...
@@ -48,7 +48,7 @@ var (
S256
=
ethutil
.
S256
S256
=
ethutil
.
S256
)
)
const
MaxCallDepth
=
102
5
const
MaxCallDepth
=
102
4
func
calcMemSize
(
off
,
l
*
big
.
Int
)
*
big
.
Int
{
func
calcMemSize
(
off
,
l
*
big
.
Int
)
*
big
.
Int
{
if
l
.
Cmp
(
ethutil
.
Big0
)
==
0
{
if
l
.
Cmp
(
ethutil
.
Big0
)
==
0
{
...
...
vm/vm_debug.go
View file @
05fd1daf
...
@@ -49,8 +49,7 @@ func (self *DebugVm) Run(me, caller ClosureRef, code []byte, value, gas, price *
...
@@ -49,8 +49,7 @@ func (self *DebugVm) Run(me, caller ClosureRef, code []byte, value, gas, price *
closure
:=
NewClosure
(
msg
,
caller
,
me
,
code
,
gas
,
price
)
closure
:=
NewClosure
(
msg
,
caller
,
me
,
code
,
gas
,
price
)
if
self
.
env
.
Depth
()
==
MaxCallDepth
{
if
self
.
env
.
Depth
()
==
MaxCallDepth
{
closure
.
UseGas
(
gas
)
//closure.UseGas(gas)
return
closure
.
Return
(
nil
),
DepthError
{}
return
closure
.
Return
(
nil
),
DepthError
{}
}
}
...
@@ -885,7 +884,7 @@ func (self *DebugVm) Run(me, caller ClosureRef, code []byte, value, gas, price *
...
@@ -885,7 +884,7 @@ func (self *DebugVm) Run(me, caller ClosureRef, code []byte, value, gas, price *
mem
.
Set
(
retOffset
.
Uint64
(),
retSize
.
Uint64
(),
ret
)
mem
.
Set
(
retOffset
.
Uint64
(),
retSize
.
Uint64
(),
ret
)
}
}
self
.
Printf
(
"resume %x
"
,
closure
.
Address
()
)
self
.
Printf
(
"resume %x
(%v)"
,
closure
.
Address
(),
closure
.
Gas
)
// Debug hook
// Debug hook
if
self
.
Dbg
!=
nil
{
if
self
.
Dbg
!=
nil
{
...
...
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