LBRY-Vault/scripts/blocks
ThomasV 2da0c0b77e big refactoring of the interface
addition of the wallet verifier class for SPV
2012-10-21 22:55:16 +02:00

15 lines
308 B
Python
Executable file

#!/usr/bin/env python
import electrum
i = electrum.Interface()
i.start()
i.send([('blockchain.numblocks.subscribe',[])])
while True:
try:
r = i.get_response()
except KeyboardInterrupt:
break
if r.get('method') == 'blockchain.numblocks.subscribe':
print r.get('result')