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
c8d6efd6
Commit
c8d6efd6
authored
Sep 19, 2016
by
Felix Lange
Committed by
GitHub
Sep 19, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3010 from Gustav-Simonsson/remove_unused_initcode_field
core/state, light: remove unused StateObject.initCode
parents
88b012ad
b6b17e56
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
9 deletions
+0
-9
state_object.go
core/state/state_object.go
+0
-3
state_test.go
core/state/state_test.go
+0
-3
state_object.go
light/state_object.go
+0
-3
No files found.
core/state/state_object.go
View file @
c8d6efd6
...
...
@@ -71,8 +71,6 @@ type StateObject struct {
codeHash
[]
byte
// The code for this account
code
Code
// Temporarily initialisation code
initCode
Code
// Cached storage (flushed when updated)
storage
Storage
...
...
@@ -188,7 +186,6 @@ func (self *StateObject) Copy() *StateObject {
stateObject
.
nonce
=
self
.
nonce
stateObject
.
trie
=
self
.
trie
stateObject
.
code
=
self
.
code
stateObject
.
initCode
=
common
.
CopyBytes
(
self
.
initCode
)
stateObject
.
storage
=
self
.
storage
.
Copy
()
stateObject
.
remove
=
self
.
remove
stateObject
.
dirty
=
self
.
dirty
...
...
core/state/state_test.go
View file @
c8d6efd6
...
...
@@ -200,9 +200,6 @@ func compareStateObjects(so0, so1 *StateObject, t *testing.T) {
if
!
bytes
.
Equal
(
so0
.
code
,
so1
.
code
)
{
t
.
Fatalf
(
"Code mismatch: have %v, want %v"
,
so0
.
code
,
so1
.
code
)
}
if
!
bytes
.
Equal
(
so0
.
initCode
,
so1
.
initCode
)
{
t
.
Fatalf
(
"InitCode mismatch: have %v, want %v"
,
so0
.
initCode
,
so1
.
initCode
)
}
for
k
,
v
:=
range
so1
.
storage
{
if
so0
.
storage
[
k
]
!=
v
{
...
...
light/state_object.go
View file @
c8d6efd6
...
...
@@ -79,8 +79,6 @@ type StateObject struct {
codeHash
[]
byte
// The code for this account
code
Code
// Temporarily initialisation code
initCode
Code
// Cached storage (flushed when updated)
storage
Storage
...
...
@@ -189,7 +187,6 @@ func (self *StateObject) Copy() *StateObject {
stateObject
.
nonce
=
self
.
nonce
stateObject
.
trie
=
self
.
trie
stateObject
.
code
=
common
.
CopyBytes
(
self
.
code
)
stateObject
.
initCode
=
common
.
CopyBytes
(
self
.
initCode
)
stateObject
.
storage
=
self
.
storage
.
Copy
()
stateObject
.
remove
=
self
.
remove
stateObject
.
dirty
=
self
.
dirty
...
...
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