changed from testnet to mainnet
This commit is contained in:
parent
105c1a8dd3
commit
17278fa66c
1
Apps.json
Normal file
1
Apps.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"FT9qkvuWXWBDRhHd42tDr5nMYFSx7bEhV7": {"Dapps": [], "lastTx": 3}, "FBcRbCxwChjTdgVewGMPBDDEFXzPcc7GAH": {"Dapps": [], "lastTx": 0}, "FC6CRkRCeJEKEGF2r1SFppPD5DXfVe1zWq": {"Dapps": [], "lastTx": 0}}
|
||||||
BIN
FLO_appStore
BIN
FLO_appStore
Binary file not shown.
@ -10,10 +10,10 @@ def searchDict(dicArr,key,val):
|
|||||||
return -1
|
return -1
|
||||||
|
|
||||||
def readUnitFromBlockchain(txid):
|
def readUnitFromBlockchain(txid):
|
||||||
rawtx = subprocess.check_output(["flo-cli","--testnet", "getrawtransaction", str(txid)])
|
rawtx = subprocess.check_output(["flo-cli", "getrawtransaction", str(txid)])
|
||||||
rawtx = str(rawtx)
|
rawtx = str(rawtx)
|
||||||
rawtx = rawtx[2:-3]
|
rawtx = rawtx[2:-3]
|
||||||
tx = subprocess.check_output(["flo-cli","--testnet", "decoderawtransaction", str(rawtx)])
|
tx = subprocess.check_output(["flo-cli", "decoderawtransaction", str(rawtx)])
|
||||||
content = json.loads(tx)
|
content = json.loads(tx)
|
||||||
text = content['floData']
|
text = content['floData']
|
||||||
return str(text)
|
return str(text)
|
||||||
@ -27,7 +27,7 @@ def Dappend(Dapps,app):
|
|||||||
return Dapps
|
return Dapps
|
||||||
|
|
||||||
def getJsonData(JsonAddress):
|
def getJsonData(JsonAddress):
|
||||||
r = requests.get("https://testnet.florincoin.info/ext/getaddress/"+JsonAddress)
|
r = requests.get("https://www.florincoin.info/ext/getaddress/"+JsonAddress)
|
||||||
data = json.loads(r.content)
|
data = json.loads(r.content)
|
||||||
#print(data)
|
#print(data)
|
||||||
Dapps = []
|
Dapps = []
|
||||||
@ -73,11 +73,10 @@ else:
|
|||||||
appData['location'] = 'apps/'+input('Enter Repository name \t: ') +'/'
|
appData['location'] = 'apps/'+input('Enter Repository name \t: ') +'/'
|
||||||
appData['exec'] = input('Enter execution cmd (eg. ./binary) \t: ')
|
appData['exec'] = input('Enter execution cmd (eg. ./binary) \t: ')
|
||||||
|
|
||||||
print(appData)
|
|
||||||
apps = Dappend(apps ,appData)
|
apps = Dappend(apps ,appData)
|
||||||
#print(apps)
|
#print(apps)
|
||||||
apphash = findHash(str(apps))
|
apphash = findHash(str(apps))
|
||||||
|
|
||||||
floData = json.dumps({'Dapp':appData ,'hash':apphash})
|
floData = json.dumps({'Dapp':appData ,'hash':apphash})
|
||||||
print('\nfloData = '+floData)
|
print('\nfloData :\n'+floData)
|
||||||
|
|
||||||
|
|||||||
8
main.py
8
main.py
@ -11,7 +11,7 @@ import socket
|
|||||||
import requests
|
import requests
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
JsonAddresses = ["oXa7t72t3CgnR11ycxVfdupz55eucHufHj","oYcLBQZkgj9taQ5Zj6ziu8eqMREhyAPCcT","oYtGSrrfLvurYLKouZw3E7AyNuM8ZushbC"]
|
JsonAddresses = ["FT9qkvuWXWBDRhHd42tDr5nMYFSx7bEhV7","FBcRbCxwChjTdgVewGMPBDDEFXzPcc7GAH","FC6CRkRCeJEKEGF2r1SFppPD5DXfVe1zWq"]
|
||||||
|
|
||||||
def searchDict(dicArr,key,val):
|
def searchDict(dicArr,key,val):
|
||||||
for i in range(len(dicArr)):
|
for i in range(len(dicArr)):
|
||||||
@ -32,10 +32,10 @@ def isConnected():
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def readUnitFromBlockchain(txid):
|
def readUnitFromBlockchain(txid):
|
||||||
rawtx = subprocess.check_output(["flo-cli","--testnet", "getrawtransaction", str(txid)])
|
rawtx = subprocess.check_output(["flo-cli", "getrawtransaction", str(txid)])
|
||||||
rawtx = str(rawtx)
|
rawtx = str(rawtx)
|
||||||
rawtx = rawtx[2:-3]
|
rawtx = rawtx[2:-3]
|
||||||
tx = subprocess.check_output(["flo-cli","--testnet", "decoderawtransaction", str(rawtx)])
|
tx = subprocess.check_output(["flo-cli", "decoderawtransaction", str(rawtx)])
|
||||||
content = json.loads(tx)
|
content = json.loads(tx)
|
||||||
text = content['floData']
|
text = content['floData']
|
||||||
return str(text)
|
return str(text)
|
||||||
@ -64,7 +64,7 @@ def verifyHash(localHash,txid):
|
|||||||
|
|
||||||
def getJsonData(Dapps, lastTx,JsonAddress):
|
def getJsonData(Dapps, lastTx,JsonAddress):
|
||||||
try:
|
try:
|
||||||
r = requests.get("https://testnet.florincoin.info/ext/getaddress/"+JsonAddress)
|
r = requests.get("https://www.florincoin.info/ext/getaddress/"+JsonAddress)
|
||||||
data = json.loads(r.content)
|
data = json.loads(r.content)
|
||||||
except:
|
except:
|
||||||
isConnected()
|
isConnected()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user