Commit fa29f61a authored by TonyFord's avatar TonyFord
Browse files

ts

parent daaa0666
Pipeline #1021 passed with stage
in 2 seconds
......@@ -17,10 +17,13 @@ rpc_connection = AuthServiceProxy("http://%s:%s@%s:%s"%(rpc_user, rpc_password,
# check datafiles blockcount
fn=script_path+'/../data/txs.info.json'
print(fn)
if not os.path.isfile(fn):
print('NOT EX')
file = open(fn,'w')
file.write(json.dumps({ 'blockhash' : 'beed44fa5e96150d95d56ebd5d2625781825a9407a5215dd7eda723373a0a1d7', 'timestamp' : int( datetime.datetime.now().timestamp() ), 'lastblocks' : [] }))
file.close()
print('OK')
file = open(fn,'r')
txs_info=json.loads( file.read() )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment