Skip to content

Commit

Permalink
Merge pull request #465 from skalenetwork/hotfix/SKALE-4884-fix-rotat…
Browse files Browse the repository at this point in the history
…ion-history

SKALE-4884 Fix rotation history for node_id=0
  • Loading branch information
dmytrotkk authored Jan 17, 2022
2 parents a6bd38a + 36578db commit 5a19d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skale/schain_config/rotation_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _add_previous_schain_rotations_state(
for node_id in nodes:
if node_id not in previous_nodes:
previous_node = skale.node_rotation.get_previous_node(schain_name, node_id)
if previous_node:
if previous_node is not None:
finish_ts = skale.node_rotation.get_schain_finish_ts(previous_node, schain_name)
exception = skale.schains_internal.check_exception(schain_name, previous_node)
if exception:
Expand Down

0 comments on commit 5a19d61

Please sign in to comment.