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 871f0bb commit 099a34b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 All @@ -1097,7 +1097,7 @@ impl Actor {

let quant = state.quant_spec_for_deadline(rt.policy(),dl_idx);

for (i, with_details) in decls_by_deadline[&dl_idx].iter().enumerate() {
for with_details in decls_by_deadline[&dl_idx].iter().enumerate() {
let update_proof_type = with_details.sector_info.seal_proof
.registered_update_proof()
.map_err(|_|
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 099a34b

Please sign in to comment.