dashpay / p2pool-dash

GNU General Public License v3.0
48 stars 86 forks source link

suppress inv type messages about masternode stuff #18

Closed chargr closed 7 years ago

chargr commented 9 years ago

I think something like this should be safe to cut down on some logging.

diff --git a/p2pool/dash/p2p.py b/p2pool/dash/p2p.py
index eecbb54..8a04e12 100644
--- a/p2pool/dash/p2p.py
+++ b/p2pool/dash/p2p.py
@@ -76,7 +76,8 @@ class Protocol(p2protocol.Protocol):
             elif inv['type'] == 'block':
                 self.factory.new_block.happened(inv['hash'])
             else:
-                print 'Unneeded inv type', inv
+                if p2pool.DEBUG:
+                    print 'Unneeded inv type', inv
poiuty commented 9 years ago

yes, we can add it pelase, create pull request

thelazier commented 7 years ago

PR #24 already have this changes :)

UdjinM6 commented 7 years ago

original issue was fixed in #19 , closing..