@@ -76,7 +76,7 @@ pub enum Method {
76
76
VerifyDealsForActivation = 5 ,
77
77
BatchActivateDeals = 6 ,
78
78
OnMinerSectorsTerminate = 7 ,
79
- ComputeDataCommitment = 8 ,
79
+ // ComputeDataCommitment = 8, // Deprecated
80
80
CronTick = 9 ,
81
81
// Method numbers derived from FRC-0042 standards
82
82
AddBalanceExported = frc42_dispatch:: method_hash!( "AddBalance" ) ,
@@ -736,24 +736,6 @@ impl Actor {
736
736
Ok ( ( ) )
737
737
}
738
738
739
- fn compute_data_commitment (
740
- rt : & impl Runtime ,
741
- params : ComputeDataCommitmentParams ,
742
- ) -> Result < ComputeDataCommitmentReturn , ActorError > {
743
- rt. validate_immediate_caller_type ( std:: iter:: once ( & Type :: Miner ) ) ?;
744
-
745
- let st: State = rt. state ( ) ?;
746
- let proposal_array = st. get_proposal_array ( rt. store ( ) ) ?;
747
-
748
- let mut commds = Vec :: with_capacity ( params. inputs . len ( ) ) ;
749
- for comm_input in params. inputs . iter ( ) {
750
- let proposed_deals = get_proposals ( & proposal_array, & comm_input. deal_ids , st. next_id ) ?;
751
- commds. push ( compute_data_commitment ( rt, & proposed_deals, comm_input. sector_type ) ?) ;
752
- }
753
-
754
- Ok ( ComputeDataCommitmentReturn { commds } )
755
- }
756
-
757
739
fn cron_tick ( rt : & impl Runtime ) -> Result < ( ) , ActorError > {
758
740
rt. validate_immediate_caller_is ( std:: iter:: once ( & CRON_ACTOR_ADDR ) ) ?;
759
741
@@ -1457,7 +1439,6 @@ impl ActorCode for Actor {
1457
1439
VerifyDealsForActivation => verify_deals_for_activation,
1458
1440
BatchActivateDeals => batch_activate_deals,
1459
1441
OnMinerSectorsTerminate => on_miner_sectors_terminate,
1460
- ComputeDataCommitment => compute_data_commitment,
1461
1442
CronTick => cron_tick,
1462
1443
GetBalanceExported => get_balance,
1463
1444
GetDealDataCommitmentExported => get_deal_data_commitment,
0 commit comments