git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5356591
)
prevent exceptions from trying to submit txs to bitcoind while connection is lost
author
Forrest Voight
<forrest@forre.st>
Sun, 21 Oct 2012 19:37:53 +0000 (15:37 -0400)
committer
Forrest Voight
<forrest@forre.st>
Sun, 21 Oct 2012 19:37:53 +0000 (15:37 -0400)
p2pool/node.py
patch
|
blob
|
history
diff --git
a/p2pool/node.py
b/p2pool/node.py
index
406787c
..
7c5c83c
100644
(file)
--- a/
p2pool/node.py
+++ b/
p2pool/node.py
@@
-241,6
+241,8
@@
class Node(object):
@defer.inlineCallbacks
def _(before, after):
yield deferral.sleep(random.expovariate(1/1))
+ if self.factory.conn.value is None:
+ return
for tx_hash in set(after) - set(before):
self.factory.conn.value.send_tx(tx=after[tx_hash])