git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5934c1f
)
fixed self.node
author
Forrest Voight
<forrest@forre.st>
Wed, 20 Mar 2013 02:40:55 +0000 (22:40 -0400)
committer
Forrest Voight
<forrest@forre.st>
Wed, 20 Mar 2013 02:40:55 +0000 (22:40 -0400)
p2pool/bitcoin/helper.py
patch
|
blob
|
history
diff --git
a/p2pool/bitcoin/helper.py
b/p2pool/bitcoin/helper.py
index
85ae90e
..
25792f8
100644
(file)
--- a/
p2pool/bitcoin/helper.py
+++ b/
p2pool/bitcoin/helper.py
@@
-70,7
+70,7
@@
def submit_block_p2p(block, factory, net):
@defer.inlineCallbacks
def submit_block_rpc(block, ignore_failure, bitcoind, bitcoind_work, net):
if bitcoind_work.value['use_getblocktemplate']:
- if 'lite' in self.node.net.NAME:
+ if 'lite' in net.NAME:
result = yield bitcoind.rpc_getblocktemplate(dict(mode='submit', data=bitcoin_data.block_type.pack(block).encode('hex')))
success = result is None
else: