@@ -847,8 +847,6 @@ impl Actor {
847
847
emit:: sector_activated ( rt, pc. info . sector_number , unsealed_cid, & data. pieces ) ?;
848
848
}
849
849
850
- // The aggregate fee is paid on the sectors successfully proven.
851
- pay_aggregate_seal_proof_fee ( rt, valid_precommits. len ( ) ) ?;
852
850
Ok ( ( ) )
853
851
}
854
852
@@ -1586,22 +1584,8 @@ impl Actor {
1586
1584
let mut fee_to_burn = TokenAmount :: zero ( ) ;
1587
1585
let mut needs_cron = false ;
1588
1586
rt. transaction ( |state : & mut State , rt| {
1589
- // Aggregate fee applies only when batching.
1590
- if sectors. len ( ) > 1 {
1591
- let aggregate_fee = aggregate_pre_commit_network_fee ( sectors. len ( ) , & rt. base_fee ( ) ) ;
1592
- // AggregateFee applied to fee debt to consolidate burn with outstanding debts
1593
- state. apply_penalty ( & aggregate_fee)
1594
- . map_err ( |e| {
1595
- actor_error ! (
1596
- illegal_state,
1597
- "failed to apply penalty: {}" ,
1598
- e
1599
- )
1600
- } ) ?;
1601
- }
1602
- // available balance already accounts for fee debt so it is correct to call
1603
- // this before RepayDebts. We would have to
1604
- // subtract fee debt explicitly if we called this after.
1587
+ // Available balance already accounts for fee debt so it is correct to call this before
1588
+ // repay_debts. We would have to subtract fee debt explicitly if we called this after.
1605
1589
let available_balance = state
1606
1590
. get_available_balance ( & rt. current_balance ( ) )
1607
1591
. map_err ( |e| {
@@ -1921,13 +1905,6 @@ impl Actor {
1921
1905
& info,
1922
1906
) ?;
1923
1907
1924
- if !params. aggregate_proof . is_empty ( ) {
1925
- // Aggregate fee is paid on the sectors successfully proven,
1926
- // but without regard to data activation which may have subsequently failed
1927
- // and prevented sector activation.
1928
- pay_aggregate_seal_proof_fee ( rt, proven_activation_inputs. len ( ) ) ?;
1929
- }
1930
-
1931
1908
// Notify data consumers.
1932
1909
let mut notifications: Vec < ActivationNotifications > = vec ! [ ] ;
1933
1910
for ( activations, sector) in & successful_sector_activations {
@@ -2207,13 +2184,6 @@ impl Actor {
2207
2184
2208
2185
burn_funds ( rt, fee_to_burn) ?;
2209
2186
2210
- let len_for_aggregate_fee = if sectors_len <= NI_AGGREGATE_FEE_BASE_SECTOR_COUNT {
2211
- 0
2212
- } else {
2213
- sectors_len - NI_AGGREGATE_FEE_BASE_SECTOR_COUNT
2214
- } ;
2215
- pay_aggregate_seal_proof_fee ( rt, len_for_aggregate_fee) ?;
2216
-
2217
2187
notify_pledge_changed ( rt, & total_pledge) ?;
2218
2188
2219
2189
let state: State = rt. state ( ) ?;
@@ -5181,29 +5151,6 @@ fn verify_aggregate_seal(
5181
5151
. context_code ( ExitCode :: USR_ILLEGAL_ARGUMENT , "aggregate seal verify failed" )
5182
5152
}
5183
5153
5184
- // Compute and burn the aggregate network fee.
5185
- fn pay_aggregate_seal_proof_fee (
5186
- rt : & impl Runtime ,
5187
- aggregate_size : usize ,
5188
- ) -> Result < ( ) , ActorError > {
5189
- // State is loaded afresh as earlier operations for sector/data activation can change it.
5190
- let state: State = rt. state ( ) ?;
5191
- let aggregate_fee = aggregate_prove_commit_network_fee ( aggregate_size, & rt. base_fee ( ) ) ;
5192
- let unlocked_balance = state
5193
- . get_unlocked_balance ( & rt. current_balance ( ) )
5194
- . map_err ( |_e| actor_error ! ( illegal_state, "failed to determine unlocked balance" ) ) ?;
5195
- if unlocked_balance < aggregate_fee {
5196
- return Err ( actor_error ! (
5197
- insufficient_funds,
5198
- "remaining unlocked funds after prove-commit {} are insufficient to pay aggregation fee of {}" ,
5199
- unlocked_balance,
5200
- aggregate_fee
5201
- ) ) ;
5202
- }
5203
- burn_funds ( rt, aggregate_fee) ?;
5204
- state. check_balance_invariants ( & rt. current_balance ( ) ) . map_err ( balance_invariants_broken)
5205
- }
5206
-
5207
5154
fn verify_deals (
5208
5155
rt : & impl Runtime ,
5209
5156
sectors : & [ ext:: market:: SectorDeals ] ,
0 commit comments