@ -8,6 +8,9 @@ i.start()
i.send([('blockchain.numblocks.subscribe',[])])
while True:
r = i.responses.get(True, 100000000000)
try:
except KeyboardInterrupt:
break
if r.get('method') == 'blockchain.numblocks.subscribe':
print r.get('result')
@ -15,7 +15,10 @@ i.start()
i.send([('blockchain.address.get_history',[addr])])
method = r.get('method')
if method == 'blockchain.address.get_history':
confirmed = unconfirmed = 0