mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 08:21:27 +00:00
add callback to example script
This commit is contained in:
parent
6df9eb491a
commit
df85516bd0
1 changed files with 2 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import electrum
|
import sys, electrum
|
||||||
|
|
||||||
i = electrum.Interface()
|
i = electrum.Interface()
|
||||||
|
i.register_callback('connected', lambda: sys.stderr.write("Connected to %s\n" % i.connection_msg))
|
||||||
i.start()
|
i.start()
|
||||||
i.send([('blockchain.numblocks.subscribe',[])])
|
i.send([('blockchain.numblocks.subscribe',[])])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue