Skip to content

Commit

Permalink
Fix more.
Browse files Browse the repository at this point in the history
  • Loading branch information
peilun-conflux committed Jun 15, 2024
1 parent 618c809 commit 245905b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/cfxcore/core/src/pos/types/src/term_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,11 @@ impl TermList {
return;
}
// This double-check should always pass.
debug_assert!(
Some(self.term_list[TERM_LIST_LEN].start_view)
== POS_STATE_CONFIG.get_starting_view_for_term(new_term)
);
// This is fixing wrong cip136 hardfork height.
self.term_list[TERM_LIST_LEN].start_view = POS_STATE_CONFIG
.get_starting_view_for_term(new_term)
.unwrap();

self.term_list.remove(0);
let new_term = self
.term_list
Expand Down

0 comments on commit 245905b

Please sign in to comment.