Skip to content
Snippets Groups Projects
Commit 1ceb0fa7 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

feat: provide current_block informations

parent 0b3aae87
No related branches found
No related tags found
1 merge request!4import data from Duniter 1.8 leveldb database
...@@ -57,7 +57,6 @@ def main(): ...@@ -57,7 +57,6 @@ def main():
first_ud_value = last_block["dividend"] first_ud_value = last_block["dividend"]
first_ud_reeval = last_block["udReevalTime"] first_ud_reeval = last_block["udReevalTime"]
inital_monetary_mass = last_block["mass"] inital_monetary_mass = last_block["mass"]
last_block_time = last_block["medianTime"]
# Add identities and wallets # Add identities and wallets
(identities, other_wallets) = get_identities_and_wallets(start_timestamp, LEVELDB_PATH) (identities, other_wallets) = get_identities_and_wallets(start_timestamp, LEVELDB_PATH)
...@@ -69,6 +68,10 @@ def main(): ...@@ -69,6 +68,10 @@ def main():
gtest_genesis = { gtest_genesis = {
"first_ud_value": first_ud_value, "first_ud_value": first_ud_value,
"first_ud_reeval": first_ud_reeval, "first_ud_reeval": first_ud_reeval,
"current_block": {
"number": last_block["number"],
"medianTime": last_block["medianTime"],
},
# "first_ud_time": FIRST_UD_TIME, # this field does not exist in Duniter # "first_ud_time": FIRST_UD_TIME, # this field does not exist in Duniter
"initial_monetary_mass": inital_monetary_mass, "initial_monetary_mass": inital_monetary_mass,
"smiths": smiths, "smiths": smiths,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment