|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 952 B After Width: | Height: | Size: 952 B |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
@ -1,2 +1,2 @@
|
||||
ELECTRUM_VERSION = "0.43e" |
||||
ELECTRUM_VERSION = "0.45" |
||||
SEED_VERSION = 4 # bump this everytime the seed generation is modified |
||||
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python |
||||
|
||||
import interface, sys |
||||
try: |
||||
addr = sys.argv[1] |
||||
except: |
||||
print "usage: watch_address <bitcoin_address>" |
||||
|
||||
i = interface.TcpStratumInterface('ecdsa.org', 50001) |
||||
i.start() |
||||
i.send([('blockchain.address.subscribe',[addr])]) |
||||
|
||||
while True: |
||||
r = i.responses.get(True, 100000000000) |
||||
method = r.get('method') |
||||
if method == 'blockchain.address.subscribe': |
||||
i.send([('blockchain.address.get_history',[addr])]) |
||||
elif method == 'blockchain.address.get_history': |
||||
confirmed = unconfirmed = 0 |
||||
h = r.get('result') |
||||
if h is None: |
||||
continue |
||||
for item in h: |
||||
v = item['value'] |
||||
if item['height']: |
||||
confirmed += v |
||||
else: |
||||
unconfirmed += v |
||||
print (confirmed+unconfirmed)/1.e8 |
||||
|
||||
|
||||