changed from testnet to mainnet

This commit is contained in:
sairajzero 2019-02-23 23:45:54 +05:30
parent 105c1a8dd3
commit 17278fa66c
4 changed files with 9 additions and 9 deletions

1
Apps.json Normal file
View File

@ -0,0 +1 @@
{"FT9qkvuWXWBDRhHd42tDr5nMYFSx7bEhV7": {"Dapps": [], "lastTx": 3}, "FBcRbCxwChjTdgVewGMPBDDEFXzPcc7GAH": {"Dapps": [], "lastTx": 0}, "FC6CRkRCeJEKEGF2r1SFppPD5DXfVe1zWq": {"Dapps": [], "lastTx": 0}}

Binary file not shown.

View File

@ -10,10 +10,10 @@ def searchDict(dicArr,key,val):
return -1
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 = 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)
text = content['floData']
return str(text)
@ -27,7 +27,7 @@ def Dappend(Dapps,app):
return Dapps
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)
#print(data)
Dapps = []
@ -73,11 +73,10 @@ else:
appData['location'] = 'apps/'+input('Enter Repository name \t: ') +'/'
appData['exec'] = input('Enter execution cmd (eg. ./binary) \t: ')
print(appData)
apps = Dappend(apps ,appData)
#print(apps)
apphash = findHash(str(apps))
floData = json.dumps({'Dapp':appData ,'hash':apphash})
print('\nfloData = '+floData)
print('\nfloData :\n'+floData)

View File

@ -11,7 +11,7 @@ import socket
import requests
import hashlib
JsonAddresses = ["oXa7t72t3CgnR11ycxVfdupz55eucHufHj","oYcLBQZkgj9taQ5Zj6ziu8eqMREhyAPCcT","oYtGSrrfLvurYLKouZw3E7AyNuM8ZushbC"]
JsonAddresses = ["FT9qkvuWXWBDRhHd42tDr5nMYFSx7bEhV7","FBcRbCxwChjTdgVewGMPBDDEFXzPcc7GAH","FC6CRkRCeJEKEGF2r1SFppPD5DXfVe1zWq"]
def searchDict(dicArr,key,val):
for i in range(len(dicArr)):
@ -32,10 +32,10 @@ def isConnected():
return False
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 = 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)
text = content['floData']
return str(text)
@ -64,7 +64,7 @@ def verifyHash(localHash,txid):
def getJsonData(Dapps, lastTx,JsonAddress):
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)
except:
isConnected()