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
e506d384
Commit
e506d384
authored
Mar 26, 2018
by
Jia Chenhui
Committed by
Péter Szilágyi
Mar 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/state: fix typo (#16370)
parent
dd708c16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
statedb.go
core/state/statedb.go
+2
-2
No files found.
core/state/statedb.go
View file @
e506d384
...
...
@@ -83,7 +83,7 @@ type StateDB struct {
lock
sync
.
Mutex
}
// Create a new state from a given trie
// Create a new state from a given trie
.
func
New
(
root
common
.
Hash
,
db
Database
)
(
*
StateDB
,
error
)
{
tr
,
err
:=
db
.
OpenTrie
(
root
)
if
err
!=
nil
{
...
...
@@ -110,7 +110,7 @@ func (self *StateDB) Error() error {
return
self
.
dbErr
}
// Reset clears out all e
m
phemeral state objects from the state db, but keeps
// Reset clears out all ephemeral state objects from the state db, but keeps
// the underlying state trie to avoid reloading data for the next operations.
func
(
self
*
StateDB
)
Reset
(
root
common
.
Hash
)
error
{
tr
,
err
:=
self
.
db
.
OpenTrie
(
root
)
...
...
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