We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3a2f03 commit de6f8f7Copy full SHA for de6f8f7
crates/node/src/shell/finalize_block.rs
@@ -280,10 +280,12 @@ where
280
self.state.pre_commit_block()?;
281
282
if let Some(migration) = &self.scheduled_migration {
283
- let migration = migration
284
- .load_and_validate()
285
- .expect("The scheduled migration is not valid.");
286
- migrations::pre_commit(&mut self.state, migration);
+ if height == migration.height {
+ let migration = migration
+ .load_and_validate()
+ .expect("The scheduled migration is not valid.");
287
+ migrations::pre_commit(&mut self.state, migration);
288
+ }
289
}
290
291
let merkle_root = self.state.in_mem().block.pre_commit_tree.root();
0 commit comments