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
3318a1e7
Commit
3318a1e7
authored
Jun 25, 2020
by
TonyFord
Browse files
add lastblocks parameter
parent
84d5d00a
Pipeline
#1014
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
script/getdata.py
View file @
3318a1e7
...
...
@@ -16,7 +16,7 @@ rpc_connection = AuthServiceProxy("http://%s:%s@%s:%s"%(rpc_user, rpc_password,
fn
=
'../data/txs.info.json'
if
not
os
.
path
.
isfile
(
fn
):
file
=
open
(
fn
,
'w'
)
file
.
write
(
json
.
dumps
({
'blockhash'
:
'beed44fa5e96150d95d56ebd5d2625781825a9407a5215dd7eda723373a0a1d7'
,
'timestamp'
:
int
(
datetime
.
datetime
.
now
().
timestamp
()
)
}))
file
.
write
(
json
.
dumps
({
'blockhash'
:
'beed44fa5e96150d95d56ebd5d2625781825a9407a5215dd7eda723373a0a1d7'
,
'timestamp'
:
int
(
datetime
.
datetime
.
now
().
timestamp
()
)
,
'lastblocks'
:
[]
}))
file
.
close
()
file
=
open
(
fn
,
'r'
)
...
...
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