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
2f9bc2ab
Commit
2f9bc2ab
authored
Jul 02, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed old code
parent
8de099ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
state.go
ethchain/state.go
+1
-5
No files found.
ethchain/state.go
View file @
2f9bc2ab
...
@@ -93,10 +93,6 @@ func (self *State) ResetStateObject(stateObject *StateObject) {
...
@@ -93,10 +93,6 @@ func (self *State) ResetStateObject(stateObject *StateObject) {
func
(
self
*
State
)
UpdateStateObject
(
stateObject
*
StateObject
)
{
func
(
self
*
State
)
UpdateStateObject
(
stateObject
*
StateObject
)
{
addr
:=
stateObject
.
Address
()
addr
:=
stateObject
.
Address
()
if
self
.
stateObjects
[
string
(
addr
)]
==
nil
{
self
.
stateObjects
[
string
(
addr
)]
=
stateObject
}
ethutil
.
Config
.
Db
.
Put
(
ethcrypto
.
Sha3Bin
(
stateObject
.
Script
()),
stateObject
.
Script
())
ethutil
.
Config
.
Db
.
Put
(
ethcrypto
.
Sha3Bin
(
stateObject
.
Script
()),
stateObject
.
Script
())
self
.
trie
.
Update
(
string
(
addr
),
string
(
stateObject
.
RlpEncode
()))
self
.
trie
.
Update
(
string
(
addr
),
string
(
stateObject
.
RlpEncode
()))
...
@@ -131,7 +127,7 @@ func (self *State) GetOrNewStateObject(addr []byte) *StateObject {
...
@@ -131,7 +127,7 @@ func (self *State) GetOrNewStateObject(addr []byte) *StateObject {
}
}
func
(
self
*
State
)
NewStateObject
(
addr
[]
byte
)
*
StateObject
{
func
(
self
*
State
)
NewStateObject
(
addr
[]
byte
)
*
StateObject
{
//
statelogger.Infof("(+) %x\n", addr)
statelogger
.
Infof
(
"(+) %x
\n
"
,
addr
)
stateObject
:=
NewStateObject
(
addr
)
stateObject
:=
NewStateObject
(
addr
)
self
.
stateObjects
[
string
(
addr
)]
=
stateObject
self
.
stateObjects
[
string
(
addr
)]
=
stateObject
...
...
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