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
22eea17b
Commit
22eea17b
authored
Sep 19, 2016
by
Gustav Simonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
light: fix memory expansion bug (same as fix for core/state)
parent
c8d6efd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
state.go
light/state.go
+3
-1
state_object.go
light/state_object.go
+1
-1
No files found.
light/state.go
View file @
22eea17b
...
...
@@ -261,7 +261,9 @@ func (self *LightState) Copy() *LightState {
state
:=
NewLightState
(
common
.
Hash
{},
self
.
odr
)
state
.
trie
=
self
.
trie
for
k
,
stateObject
:=
range
self
.
stateObjects
{
state
.
stateObjects
[
k
]
=
stateObject
.
Copy
()
if
stateObject
.
dirty
{
state
.
stateObjects
[
k
]
=
stateObject
.
Copy
()
}
}
return
state
...
...
light/state_object.go
View file @
22eea17b
...
...
@@ -186,7 +186,7 @@ func (self *StateObject) Copy() *StateObject {
stateObject
.
codeHash
=
common
.
CopyBytes
(
self
.
codeHash
)
stateObject
.
nonce
=
self
.
nonce
stateObject
.
trie
=
self
.
trie
stateObject
.
code
=
common
.
CopyBytes
(
self
.
code
)
stateObject
.
code
=
self
.
code
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