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
79cd58bd
Commit
79cd58bd
authored
Jan 31, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed old code
parent
d1e5d921
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
statedb.go
state/statedb.go
+0
-12
No files found.
state/statedb.go
View file @
79cd58bd
...
@@ -290,30 +290,18 @@ func (self *StateDB) Refunds() map[string]*big.Int {
...
@@ -290,30 +290,18 @@ func (self *StateDB) Refunds() map[string]*big.Int {
}
}
func
(
self
*
StateDB
)
Update
(
gasUsed
*
big
.
Int
)
{
func
(
self
*
StateDB
)
Update
(
gasUsed
*
big
.
Int
)
{
var
deleted
bool
self
.
refund
=
make
(
map
[
string
]
*
big
.
Int
)
self
.
refund
=
make
(
map
[
string
]
*
big
.
Int
)
for
_
,
stateObject
:=
range
self
.
stateObjects
{
for
_
,
stateObject
:=
range
self
.
stateObjects
{
if
stateObject
.
remove
{
if
stateObject
.
remove
{
self
.
DeleteStateObject
(
stateObject
)
self
.
DeleteStateObject
(
stateObject
)
deleted
=
true
}
else
{
}
else
{
stateObject
.
Sync
()
stateObject
.
Sync
()
self
.
UpdateStateObject
(
stateObject
)
self
.
UpdateStateObject
(
stateObject
)
}
}
}
}
// FIXME trie delete is broken
if
deleted
{
valid
,
t2
:=
trie
.
ParanoiaCheck
(
self
.
trie
,
self
.
db
)
if
!
valid
{
statelogger
.
Infof
(
"Warn: PARANOIA: Different state root during copy %x vs %x
\n
"
,
self
.
trie
.
Root
(),
t2
.
Root
())
self
.
trie
=
t2
}
}
}
}
func
(
self
*
StateDB
)
Manifest
()
*
Manifest
{
func
(
self
*
StateDB
)
Manifest
()
*
Manifest
{
...
...
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