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
64701e38
Commit
64701e38
authored
May 20, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed state issue
parent
7dae955c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
state.go
ethchain/state.go
+0
-3
types.go
ethpub/types.go
+8
-0
No files found.
ethchain/state.go
View file @
64701e38
...
...
@@ -61,9 +61,6 @@ func (s *State) GetStateObject(addr []byte) *StateObject {
cachedStateObject
:=
s
.
states
[
string
(
addr
)]
if
cachedStateObject
!=
nil
{
stateObject
.
state
=
cachedStateObject
}
else
{
// If it isn't cached, cache the state
s
.
states
[
string
(
addr
)]
=
stateObject
.
state
}
return
stateObject
...
...
ethpub/types.go
View file @
64701e38
...
...
@@ -104,6 +104,14 @@ func (c *PStateObject) Nonce() int {
return
0
}
func
(
c
*
PStateObject
)
Root
()
string
{
if
c
.
object
!=
nil
{
return
ethutil
.
Hex
(
ethutil
.
NewValue
(
c
.
object
.
State
()
.
Root
())
.
Bytes
())
}
return
"<err>"
}
func
(
c
*
PStateObject
)
IsContract
()
bool
{
if
c
.
object
!=
nil
{
return
len
(
c
.
object
.
Script
())
>
0
...
...
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