from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException import time, threading from firebase import firebase global firebase firebase = firebase.FirebaseApplication('https://shop-n-out.firebaseio.com', None) #init RPC conn rpc_user='******' rpc_password='******' port = '4346' blockchain = AuthServiceProxy("http://%s:%s@localhost:%s"%(rpc_user, rpc_password, port)) server_address = blockchain.getaddresses()[0] client_address = '1QqdDcTwjUjhP2kEcyaxvM56ddJMAnDHHuUBZn' print server_address def checkoutGetter(): return firebase.get('/checkout',None)['value'] == 1 def checkoutSetter(val): firebase.put('/','checkout',{'value':val}) return def itemsGetter(): temp=firebase.get('/items',None) return temp.values() def itemsKeys():