Beispiel #1
0
db_user = config.get('db','user')
db_password = config.get('db','password')
db_name = config.get('db','name')

electrum_server = config.get('electrum','server')

my_password = config.get('main','password')
my_host = config.get('main','host')
my_port = config.getint('main','port')

cb_received = config.get('callback','received')
cb_expired = config.get('callback','expired')
cb_password = config.get('callback','password')

wallet = Wallet()
wallet.master_public_key = config.get('electrum','mpk')



omg_addresses = {}

def electrum_input_thread(in_queue, i):
    while True:
        addr, amount = in_queue.get(True,1000000000)
        if addr in omg_addresses: 
            continue
        else:
            print "subscribing to ", addr
            omg_addresses[addr] = amount
            i.send([('blockchain.address.subscribe',[addr])])