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
eaf73b55
Commit
eaf73b55
authored
Apr 15, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
miner: moved bad uncle logging to ridiculous log level. Closes #720
parent
5d2138a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
verbosity.go
logger/verbosity.go
+2
-0
worker.go
miner/worker.go
+5
-2
No files found.
logger/verbosity.go
View file @
eaf73b55
...
@@ -7,4 +7,6 @@ const (
...
@@ -7,4 +7,6 @@ const (
Core
Core
Debug
Debug
Detail
Detail
Ridiculousness
=
100
)
)
miner/worker.go
View file @
eaf73b55
...
@@ -299,8 +299,11 @@ func (self *worker) commitNewWork() {
...
@@ -299,8 +299,11 @@ func (self *worker) commitNewWork() {
}
}
if
err
:=
self
.
commitUncle
(
uncle
.
Header
());
err
!=
nil
{
if
err
:=
self
.
commitUncle
(
uncle
.
Header
());
err
!=
nil
{
glog
.
V
(
logger
.
Debug
)
.
Infof
(
"Bad uncle found and will be removed (%x)
\n
"
,
hash
[
:
4
])
if
glog
.
V
(
logger
.
Ridiculousness
)
{
glog
.
V
(
logger
.
Debug
)
.
Infoln
(
uncle
)
glog
.
V
(
logger
.
Detail
)
.
Infof
(
"Bad uncle found and will be removed (%x)
\n
"
,
hash
[
:
4
])
glog
.
V
(
logger
.
Detail
)
.
Infoln
(
uncle
)
}
badUncles
=
append
(
badUncles
,
hash
)
badUncles
=
append
(
badUncles
,
hash
)
}
else
{
}
else
{
glog
.
V
(
logger
.
Debug
)
.
Infof
(
"commiting %x as uncle
\n
"
,
hash
[
:
4
])
glog
.
V
(
logger
.
Debug
)
.
Infof
(
"commiting %x as uncle
\n
"
,
hash
[
:
4
])
...
...
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