Skip to content
Snippets Groups Projects
Commit 265a3914 authored by Jake Taylor's avatar Jake Taylor
Browse files

fix unit

parent c1a4a31e
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ import time ...@@ -21,6 +21,7 @@ import time
substrate_conn_freq = 10 # Frequency of attempting reconnects in seconds substrate_conn_freq = 10 # Frequency of attempting reconnects in seconds
xxdot_url = "" xxdot_url = ""
ns_in_s = float(1e+9) # Conversion from nanosecond to second ns_in_s = float(1e+9) # Conversion from nanosecond to second
ms_in_ns = 1e+6
THOUSAND = 1_000 THOUSAND = 1_000
state_key = "consensus_points_timestamp" # Static key used for states table state_key = "consensus_points_timestamp" # Static key used for states table
positive_points_func = 'submit_cmix_points' positive_points_func = 'submit_cmix_points'
...@@ -76,7 +77,7 @@ def main(): ...@@ -76,7 +77,7 @@ def main():
try: try:
# Get up-to-date period information from blockchain # Get up-to-date period information from blockchain
point_info = poll_point_info(substrate) point_info = poll_point_info(substrate)
period = point_info['period'] * 1e+6 period = int(point_info['period'] * ms_in_ns)
# Wait until the next period arrives # Wait until the next period arrives
next_period = last_checked_ts + period next_period = last_checked_ts + period
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment