Skip to content

Commit

Permalink
Remove "punish share" stuff, it is messing too much on fast altcoins
Browse files Browse the repository at this point in the history
  • Loading branch information
Rav3nPL committed Feb 13, 2014
1 parent bce0ee2 commit a19b695
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions p2pool/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,6 @@ def _get_other_txs(self, tracker, known_txs):
return [known_txs[tx_hash] for tx_hash in other_tx_hashes]

def should_punish_reason(self, previous_block, bits, tracker, known_txs):
if (self.header['previous_block'], self.header['bits']) != (previous_block, bits) and self.header_hash != previous_block and self.peer_addr is not None:
return True, 'Block-stale detected! height(%x) < height(%x) or %08x != %08x' % (self.header['previous_block'], previous_block, self.header['bits'].bits, bits.bits)

if self.pow_hash <= self.header['bits'].target:
return -1, 'block solution'
Expand Down

1 comment on commit a19b695

@forrestv
Copy link

Choose a reason for hiding this comment

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

You should probably make this a flag in networks.py, rather than globally disabling it. The benefits definitely outweigh the downsides for slower coins.

Please sign in to comment.