Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Dec 26, 2023
1 parent b38bc7a commit afd3299
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/migrate/src/migrations/set_2019_block_cycle_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ impl Migration for BlockExt2019ToZero {
old_block_ext.cycles = None;
db_txn.insert_block_ext(&hash, &old_block_ext)?;

header = db_txn
.get_block_header(&header.parent_hash())
.expect("db must have header");

if header.is_genesis() {
break;
}

header = db_txn
.get_block_header(&header.parent_hash())
.expect("db must have header");

pbi.inc(1);
}
db_txn.commit()?;
Expand Down

0 comments on commit afd3299

Please sign in to comment.