Skip to content

Commit

Permalink
don't punish new shares for not having all transactions. punishing
Browse files Browse the repository at this point in the history
could potentially cause problems as sending all transactions is no
longer enforced at the protocol level.
  • Loading branch information
forrestv committed Jul 8, 2013
1 parent f3a0e8d commit 94b87f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions p2pool/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,7 @@ def should_punish_reason(self, previous_block, bits, tracker, known_txs):

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:
Expand Down

0 comments on commit 94b87f6

Please sign in to comment.