force block push
authorforrest <forrest@470744a7-cac9-478e-843e-5ec1b25c69e8>
Thu, 16 Jun 2011 16:33:13 +0000 (16:33 +0000)
committerforrest <forrest@470744a7-cac9-478e-843e-5ec1b25c69e8>
Thu, 16 Jun 2011 16:33:13 +0000 (16:33 +0000)
git-svn-id: svn://forre.st/p2pool@1351 470744a7-cac9-478e-843e-5ec1b25c69e8

main.py

diff --git a/main.py b/main.py
index 5c88e93..f783787 100644 (file)
--- a/main.py
+++ b/main.py
@@ -212,7 +212,7 @@ def main(args):
             if share.hash <= conv.bits_to_target(share.header['bits']):
                 print 'GOT BLOCK! Passing to bitcoind! %x' % (share.hash,)
                 if factory.conn is not None:
-                    factory.conn.addInv('block', share.as_block())
+                    factory.conn.send_block(block=share.as_block())
                 else:
                     print 'No bitcoind connection! Erp!'