Skip to content

Commit

Permalink
debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni committed Feb 26, 2020
1 parent cfce5e6 commit b7cc047
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p2pool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ def poll_warnings():
address = None

if address is not None:
print("before rpc_validateaddress ***************")
print(address)
res = yield deferral.retry('Error validating cached address:', 5)(lambda: bitcoind.rpc_validateaddress(address))()
print(res)
if not res['isvalid'] or not res['ismine']:
print ' Cached address is either invalid or not controlled by local bitcoind!'
address = None
Expand Down

0 comments on commit b7cc047

Please sign in to comment.