electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit df85516bd054fa25b9ed77bb387a74c640ebb99b
parent 6df9eb491ab1432c4033ca36dd126fa249c5594d
Author: ThomasV <thomasv@gitorious>
Date:   Sun, 28 Oct 2012 08:14:00 +0100

add callback to example script

Diffstat:
Mscripts/blocks | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/blocks b/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',[])])