Skip to content

Commit

Permalink
send long poll when we get transactions to include
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestv committed Jun 10, 2012
1 parent 83ccdf7 commit a378c19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2pool/main.py
Expand Up @@ -299,7 +299,8 @@ def compute_work():

@current_work.transitioned.watch
def _(before, after):
if any(before[x] != after[x] for x in ['version', 'previous_block', 'bits']):
# trigger LP if version/previous_block/bits changed or transactions changed from nothing
if any(before[x] != after[x] for x in ['version', 'previous_block', 'bits']) or (not before['transactions'] and after['transactions']):
lp_signal.happened()


Expand Down

0 comments on commit a378c19

Please sign in to comment.