@@ -3415,7 +3415,7 @@ fn extend_sector_committment(
3415
3415
validate_extended_expiration ( policy, curr_epoch, new_expiration, sector) ?;
3416
3416
3417
3417
// all simple_qa_power sectors with VerifiedDealWeight > 0 MUST check all claims
3418
- if sector. simple_qa_power {
3418
+ if sector. flags . contains ( SectorOnChainInfoFlags :: SIMPLE_QA_POWER ) {
3419
3419
extend_simple_qap_sector (
3420
3420
policy,
3421
3421
new_expiration,
@@ -3440,7 +3440,7 @@ fn extend_sector_committment_legacy(
3440
3440
validate_extended_expiration ( policy, curr_epoch, new_expiration, sector) ?;
3441
3441
3442
3442
// it is an error to do legacy sector expiration on simple-qa power sectors with deal weight
3443
- if sector. simple_qa_power
3443
+ if sector. flags . contains ( SectorOnChainInfoFlags :: SIMPLE_QA_POWER )
3444
3444
&& ( sector. verified_deal_weight > BigInt :: zero ( ) || sector. deal_weight > BigInt :: zero ( ) )
3445
3445
{
3446
3446
return Err ( actor_error ! (
@@ -3739,7 +3739,7 @@ fn update_existing_sector_info(
3739
3739
) -> SectorOnChainInfo {
3740
3740
let mut new_sector_info = sector_info. clone ( ) ;
3741
3741
3742
- new_sector_info. simple_qa_power = true ;
3742
+ new_sector_info. flags . set ( SectorOnChainInfoFlags :: SIMPLE_QA_POWER , true ) ;
3743
3743
new_sector_info. sealed_cid = activated_data. seal_cid ;
3744
3744
new_sector_info. sector_key_cid = match new_sector_info. sector_key_cid {
3745
3745
None => Some ( sector_info. sealed_cid ) ,
@@ -4841,7 +4841,7 @@ fn activate_new_sector_infos(
4841
4841
power_base_epoch : activation_epoch,
4842
4842
replaced_day_reward : TokenAmount :: zero ( ) ,
4843
4843
sector_key_cid : None ,
4844
- simple_qa_power : true ,
4844
+ flags : SectorOnChainInfoFlags :: SIMPLE_QA_POWER ,
4845
4845
} ;
4846
4846
4847
4847
new_sector_numbers. push ( new_sector_info. sector_number ) ;
0 commit comments