@@ -48,7 +48,6 @@ use fil_actors_runtime::{
4848 SYSTEM_ACTOR_ADDR , VERIFIED_REGISTRY_ACTOR_ADDR ,
4949} ;
5050use fvm_ipld_encoding:: ipld_block:: IpldBlock ;
51- use fvm_shared:: version:: NetworkVersion ;
5251pub use monies:: * ;
5352pub use partition_state:: * ;
5453pub use policy:: * ;
@@ -163,14 +162,6 @@ impl Actor {
163162 check_control_addresses ( rt. policy ( ) , & params. control_addresses ) ?;
164163 check_peer_info ( rt. policy ( ) , & params. peer_id , & params. multi_addresses ) ?;
165164 check_valid_post_proof_type ( rt. policy ( ) , params. window_post_proof_type ) ?;
166- // TODO: v12: cleanup https://github.com/filecoin-project/builtin-actors/issues/1260
167- if !is_window_post_proof_v1p1 ( params. window_post_proof_type ) {
168- return Err ( actor_error ! (
169- illegal_argument,
170- "unsupported window post proof type: {:?}" ,
171- params. window_post_proof_type
172- ) ) ;
173- }
174165
175166 let owner = rt. resolve_address ( & params. owner ) . ok_or_else ( || {
176167 actor_error ! ( illegal_argument, "unable to resolve owner address: {}" , params. owner)
@@ -550,33 +541,12 @@ impl Actor {
550541
551542 // Make sure the miner is using the correct proof type.
552543 if params. proofs [ 0 ] . post_proof != info. window_post_proof_type {
553- // Special for nv19: Allow the v1 version of v1p1 post proof types
554- let nv = rt. network_version ( ) ;
555- // TODO: v12: cleanup https://github.com/filecoin-project/builtin-actors/issues/1260
556- if nv == NetworkVersion :: V19 {
557- let info_v1_proof_type =
558- convert_window_post_proof_v1p1_to_v1 ( info. window_post_proof_type )
559- . context_code (
560- ExitCode :: USR_ILLEGAL_STATE ,
561- "failed to convert to v1 window post proof" ,
562- ) ?;
563- if info_v1_proof_type != params. proofs [ 0 ] . post_proof {
564- return Err ( actor_error ! (
565- illegal_argument,
566- "expected proof of type {:?} or {:?}, got {:?}" ,
567- info_v1_proof_type,
568- info. window_post_proof_type,
569- params. proofs[ 0 ] . post_proof
570- ) ) ;
571- }
572- } else {
573- return Err ( actor_error ! (
574- illegal_argument,
575- "expected proof of type {:?}, got {:?}" ,
576- info. window_post_proof_type,
577- params. proofs[ 0 ] . post_proof
578- ) ) ;
579- }
544+ return Err ( actor_error ! (
545+ illegal_argument,
546+ "expected proof of type {:?}, got {:?}" ,
547+ info. window_post_proof_type,
548+ params. proofs[ 0 ] . post_proof
549+ ) ) ;
580550 }
581551
582552 // Make sure the proof size doesn't exceed the max. We could probably check for an exact match, but this is safer.
0 commit comments