Skip to content

Commit

Permalink
User proposer_schedule.version for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
linh2931 committed Aug 15, 2024
1 parent cb6c6c4 commit 87ecd37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/block_header_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ void finish_next(const block_header_state& prev,
("n",block_header::num_from_id(id))("id", id)("pol", *act));
}

if (next_header_state.active_proposer_policy != prev.active_proposer_policy) {
if (next_header_state.active_proposer_policy->proposer_schedule.version != prev.active_proposer_policy->proposer_schedule.version) {
const auto& act = next_header_state.active_proposer_policy;
dlog("Proposer policy version change: ${old_ver} -> ${new_ver}",
("old_ver", prev.active_proposer_policy->proposer_schedule.version)("new_ver",act->proposer_schedule.version));
Expand Down

0 comments on commit 87ecd37

Please sign in to comment.