From: Forrest Voight Date: Sun, 21 Oct 2012 19:37:53 +0000 (-0400) Subject: prevent exceptions from trying to submit txs to bitcoind while connection is lost X-Git-Tag: 9.0~37 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=c78dab1c69ab4b4fc4c1597fab36caab8e74a102 prevent exceptions from trying to submit txs to bitcoind while connection is lost --- diff --git a/p2pool/node.py b/p2pool/node.py index 406787c..7c5c83c 100644 --- 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])