>> (p.1)
    Author Topic: blkmond lite  (Read 6534 times)
    metonymous (OP)
    Newbie
    *
    Offline Offline

    Activity: 29
    Merit: 0


    View Profile
    May 18, 2011, 03:27:59 PM
     #1

    hey all, I couldn't grok blkmond, or seemingly get it working. it runs and sits there... doing nothing even when a block turns up. Anyway;

    from that engineering "do it yourself" mentality I wrote a substitute that operates in possibly the least efficient way possible, it just polls bitcoind over RPC ever 0.1 of a second. Huzzah! Anyway it works, and it's a "fixed cost" work, it won't increase usage if you increase pool size.

    I jokingly called it pollpokepush.py (it's even fun to say!),

    To get it working:
    Code:
    #!/usr/bin/env python
    from jsonrpc.authproxy import AuthServiceProxy
    import sys
    import os

    access = AuthServiceProxy("http://RPCUSER:RPCPASS@127.0.0.1:8332")
    blockcount = access.getblockcount()
    from time import sleep
    while(True):
            newcount = access.getblockcount()
            if newcount > blockcount:
                    os.system("killall -s SIGUSR1 pushpoold")
                    sys.stdout.write("B")
                    sys.stdout.flush()
                    blockcount = newcount
                    sleep(1)
            else:
                    sleep(0.1)

Page 1
Viewing Page: 1