Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FairCoin.Co
pulse.faircoin.co
Commits
fa29f61a
Commit
fa29f61a
authored
Jun 25, 2020
by
TonyFord
Browse files
ts
parent
daaa0666
Pipeline
#1021
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
script/getdata.py
View file @
fa29f61a
...
...
@@ -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
()
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment