don't punish new shares for not having all transactions. punishing 13.1
authorForrest Voight <forrest@forre.st>
Mon, 8 Jul 2013 15:53:23 +0000 (11:53 -0400)
committerForrest Voight <forrest@forre.st>
Mon, 8 Jul 2013 15:54:49 +0000 (11:54 -0400)
could potentially cause problems as sending all transactions is no
longer enforced at the protocol level.

p2pool/data.py

index 0ff5f07..6df3e89 100644 (file)
@@ -355,8 +355,7 @@ class NewShare(object):
         
         other_txs = self._get_other_txs(tracker, known_txs)
         if other_txs is None:
-            if self.time_seen != 0: # ignore if loaded from ShareStore
-                return True, 'not all txs present'
+            pass
         else:
             all_txs_size = sum(bitcoin_data.tx_type.packed_size(tx) for tx in other_txs)
             if all_txs_size > 1000000: