Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
entangled/ciri/consensus: milestone_tracker - set start index by init…
Browse files Browse the repository at this point in the history
…ial snapshot
  • Loading branch information
tsvisabo committed Sep 2, 2019
1 parent 95a6aa3 commit 3286485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ciri/consensus/milestone/milestone_tracker.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ retcode_t iota_milestone_tracker_init(milestone_tracker_t* const mt, iota_consen
mt->transaction_solidifier = ts;
mt->candidates = NULL;
lock_handle_init(&mt->candidates_lock);
mt->milestone_start_index = conf->last_milestone;
mt->milestone_start_index = iota_snapshot_get_index(&snapshots_provider->initial_snapshot);
mt->latest_milestone_index = conf->last_milestone;
mt->latest_solid_milestone_index = MAX(conf->last_milestone, snapshots_provider->initial_snapshot.metadata.index);
mt->snapshots_provider = snapshots_provider;
Expand Down

0 comments on commit 3286485

Please sign in to comment.