Skip to content

Commit

Permalink
Fix prove replica update multi dline bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Mar 25, 2022
1 parent 8c9aee9 commit 7220aba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actors/miner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ impl Actor {
let mut deadlines = state
.load_deadlines(rt.store())?;

let mut new_sectors = vec![SectorOnChainInfo::default(); validated_updates.len()];
let mut new_sectors = vec![SectorOnChainInfo::default()];
for &dl_idx in deadlines_to_load.iter() {
let mut deadline = deadlines
.load_deadline(rt.policy(),rt.store(), dl_idx)
Expand Down Expand Up @@ -1244,7 +1244,7 @@ impl Actor {
})?;

bf.set(new_sector_info.sector_number);
new_sectors[i] = new_sector_info;
new_sectors.push(new_sector_info);
}

deadline.partitions = partitions.flush().map_err(|e| {
Expand Down

0 comments on commit 7220aba

Please sign in to comment.