Skip to content

Commit

Permalink
v13: fix deal sector match predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Feb 12, 2024
1 parent f339bd4 commit 11fc27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/v13/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func CheckDealStatesAgainstSectors(acc *builtin.MessageAccumulator, minerSummari
"deal state slashed at %d after sector expiration %d for miner %v",
deal.SlashEpoch, sectorDeal.SectorExpiration, deal.Provider)

acc.Require((deal.SectorNumber == sectorDeal.SectorNumber) || (deal.SectorNumber == 0 && deal.LastUpdatedEpoch != -1),
acc.Require((deal.SectorNumber == sectorDeal.SectorNumber) || (deal.SectorNumber == 0 && deal.SlashEpoch != -1),
"deal sector number %d does not match sector %d for miner %v (ds: %#v; ss %#v)",
deal.SectorNumber, sectorDeal.SectorNumber, deal.Provider, deal, sectorDeal)
}
Expand Down

0 comments on commit 11fc27c

Please sign in to comment.