good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
47fd4833
Commit
47fd4833
authored
10 years ago
by
Jeffrey Wilcke
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix/3'
parents
7dae955c
64701e38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ethchain/state.go
+0
-3
0 additions, 3 deletions
ethchain/state.go
ethpub/types.go
+8
-0
8 additions, 0 deletions
ethpub/types.go
with
8 additions
and
3 deletions
ethchain/state.go
+
0
−
3
View file @
47fd4833
...
@@ -61,9 +61,6 @@ func (s *State) GetStateObject(addr []byte) *StateObject {
...
@@ -61,9 +61,6 @@ func (s *State) GetStateObject(addr []byte) *StateObject {
cachedStateObject
:=
s
.
states
[
string
(
addr
)]
cachedStateObject
:=
s
.
states
[
string
(
addr
)]
if
cachedStateObject
!=
nil
{
if
cachedStateObject
!=
nil
{
stateObject
.
state
=
cachedStateObject
stateObject
.
state
=
cachedStateObject
}
else
{
// If it isn't cached, cache the state
s
.
states
[
string
(
addr
)]
=
stateObject
.
state
}
}
return
stateObject
return
stateObject
...
...
This diff is collapsed.
Click to expand it.
ethpub/types.go
+
8
−
0
View file @
47fd4833
...
@@ -104,6 +104,14 @@ func (c *PStateObject) Nonce() int {
...
@@ -104,6 +104,14 @@ func (c *PStateObject) Nonce() int {
return
0
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
{
func
(
c
*
PStateObject
)
IsContract
()
bool
{
if
c
.
object
!=
nil
{
if
c
.
object
!=
nil
{
return
len
(
c
.
object
.
Script
())
>
0
return
len
(
c
.
object
.
Script
())
>
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment