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
f2fdb75d
Unverified
Commit
f2fdb75d
authored
May 19, 2018
by
hadv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core, consensus: fix some typos in comment code and output log
parent
784aa839
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
clique.go
consensus/clique/clique.go
+1
-1
statedb.go
core/state/statedb.go
+1
-1
No files found.
consensus/clique/clique.go
View file @
f2fdb75d
...
...
@@ -383,7 +383,7 @@ func (c *Clique) snapshot(chain consensus.ChainReader, number uint64, hash commo
// If an on-disk checkpoint snapshot can be found, use that
if
number
%
checkpointInterval
==
0
{
if
s
,
err
:=
loadSnapshot
(
c
.
config
,
c
.
signatures
,
c
.
db
,
hash
);
err
==
nil
{
log
.
Trace
(
"Loaded voting snapshot f
or
m disk"
,
"number"
,
number
,
"hash"
,
hash
)
log
.
Trace
(
"Loaded voting snapshot f
ro
m disk"
,
"number"
,
number
,
"hash"
,
hash
)
snap
=
s
break
}
...
...
core/state/statedb.go
View file @
f2fdb75d
...
...
@@ -358,7 +358,7 @@ func (self *StateDB) deleteStateObject(stateObject *stateObject) {
self
.
setError
(
self
.
trie
.
TryDelete
(
addr
[
:
]))
}
// Retrieve a state object given
m
y the address. Returns nil if not found.
// Retrieve a state object given
b
y the address. Returns nil if not found.
func
(
self
*
StateDB
)
getStateObject
(
addr
common
.
Address
)
(
stateObject
*
stateObject
)
{
// Prefer 'live' objects.
if
obj
:=
self
.
stateObjects
[
addr
];
obj
!=
nil
{
...
...
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