Skip to content

Commit

Permalink
ignore bitcoind's annoying "pre-release test build" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestv committed Nov 18, 2012
1 parent 8c16def commit daa3ba3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2pool/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,8 @@ def get_warnings(tracker, best_share, net, bitcoind_warning, bitcoind_work_value
majority_desired_version, 100*desired_version_counts[majority_desired_version]/sum(desired_version_counts.itervalues())))

if bitcoind_warning is not None:
if 'This is a pre-release test build' in bitcoind_warning:
pass
res.append('(from bitcoind) %s' % (bitcoind_warning,))

if time.time() > bitcoind_work_value['last_update'] + 60:
Expand Down

3 comments on commit daa3ba3

@Rav3nPL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is not working, log and stats page is still spammed by that message

Working this way:
[code]
if bitcoind_warning is not None:
if not 'test build' in bitcoind_warning:
res.append('(from bitcoind) %s' % (bitcoind_warning,))
[/code]

@forrestv
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you paste your specific warning message? Maybe it's different from mine.

@Rav3nPL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have latest git:

"errors" : "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications"

Looks the same for me, idk why "pass" way not working.

Please sign in to comment.