Skip to content

Commit

Permalink
fixup! Merge branch 'tomas/fst-epoch-start-height' (#1993)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Nov 28, 2023
1 parent 83d5f22 commit 5a3af44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/src/lib/node/ledger/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,7 @@ mod tests {
let hash = BlockHash::default();
let height = BlockHeight(1);
storage.begin_block(hash, height)?;
// Epoch 1
storage.block.epoch = storage.block.epoch.next();
// Epoch 0
storage.block.pred_epochs.new_epoch(height);
let mut batch = PersistentStorage::batch();
for (height, key, write_type) in blocks_write_type.clone() {
Expand Down Expand Up @@ -592,7 +591,6 @@ mod tests {
.write(&key, types::encode(&value))
.expect("write failed");

storage.block.epoch = storage.block.epoch.next();
storage.block.pred_epochs.new_epoch(new_epoch_start);
let batch = PersistentStorage::batch();
storage.commit_block(batch).expect("commit failed");
Expand Down

0 comments on commit 5a3af44

Please sign in to comment.