Skip to main content
Sign in
Snippets Groups Projects
Commit f2ee2726 authored by poka's avatar poka :speech_balloon:
Browse files

add comments, move smith and tech commitee to custom folder

parent 5cbcdc37
Branches
No related tags found
No related merge requests found
File moved
...@@ -69,11 +69,15 @@ def get_identities_and_wallets(start_timestamp): ...@@ -69,11 +69,15 @@ def get_identities_and_wallets(start_timestamp):
# If not a member, continue # If not a member, continue
if r_pubkey not in identity_names: continue if r_pubkey not in identity_names: continue
r_username = identity_names[r_pubkey] r_username = identity_names[r_pubkey]
if r_username == None: continue if r_username == None: continue
# if no arguments, set start time to now
if start_timestamp == '': start_timestamp = int(time()) if start_timestamp == '': start_timestamp = int(time())
# get expiration bloc number from cert written time
cert_expire_on_bloc = date_to_bloc_number(blocs[str(cert['writtenOn'])], start_timestamp) cert_expire_on_bloc = date_to_bloc_number(blocs[str(cert['writtenOn'])], start_timestamp)
# if certification is expired, skip
if cert_expire_on_bloc <= 0: continue if cert_expire_on_bloc <= 0: continue
if r_username not in identities: identities.update({r_username: {}}) if r_username not in identities: identities.update({r_username: {}})
...@@ -88,11 +92,14 @@ def get_identities_and_wallets(start_timestamp): ...@@ -88,11 +92,14 @@ def get_identities_and_wallets(start_timestamp):
del identities[r_username]['certs'][inc] del identities[r_username]['certs'][inc]
inc=inc+1 inc=inc+1
# add received certification to identity
identities[r_username]['certs'].append([idty_name, cert_expire_on_bloc]) identities[r_username]['certs'].append([idty_name, cert_expire_on_bloc])
# add address and balance to identity
if idty_name not in identities: identities.update({idty_name: {}}) if idty_name not in identities: identities.update({idty_name: {}})
identities[idty_name].update({'balance': wallets[address]}) identities[idty_name].update({'balance': wallets[address]})
identities[idty_name].update({'pubkey': address}) identities[idty_name].update({'pubkey': address})
list_idty.add(address) list_idty.add(address)
# Add custom identities # Add custom identities
... ...
......
...@@ -19,7 +19,7 @@ import sys ...@@ -19,7 +19,7 @@ import sys
from lib.functions import * from lib.functions import *
from currency_parameters import * from currency_parameters import *
from lib.get_parameters import * from lib.get_parameters import *
from lib.get_smiths_and_techs import * from custom.get_smiths_and_techs import *
# Get optional arguments # Get optional arguments
opt1 = '' opt1 = ''
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment