Browse Source

add callback to example script

283
ThomasV 13 years ago
parent
commit
df85516bd0
  1. 3
      scripts/blocks

3
scripts/blocks

@ -1,8 +1,9 @@
#!/usr/bin/env python
import electrum
import sys, electrum
i = electrum.Interface()
i.register_callback('connected', lambda: sys.stderr.write("Connected to %s\n" % i.connection_msg))
i.start()
i.send([('blockchain.numblocks.subscribe',[])])

Loading…
Cancel
Save