@@ -48,7 +48,6 @@ use fil_actors_runtime::{
48
48
SYSTEM_ACTOR_ADDR , VERIFIED_REGISTRY_ACTOR_ADDR ,
49
49
} ;
50
50
use fvm_ipld_encoding:: ipld_block:: IpldBlock ;
51
- use fvm_shared:: version:: NetworkVersion ;
52
51
pub use monies:: * ;
53
52
pub use partition_state:: * ;
54
53
pub use policy:: * ;
@@ -163,14 +162,6 @@ impl Actor {
163
162
check_control_addresses ( rt. policy ( ) , & params. control_addresses ) ?;
164
163
check_peer_info ( rt. policy ( ) , & params. peer_id , & params. multi_addresses ) ?;
165
164
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
- }
174
165
175
166
let owner = rt. resolve_address ( & params. owner ) . ok_or_else ( || {
176
167
actor_error ! ( illegal_argument, "unable to resolve owner address: {}" , params. owner)
@@ -550,33 +541,12 @@ impl Actor {
550
541
551
542
// Make sure the miner is using the correct proof type.
552
543
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
+ ) ) ;
580
550
}
581
551
582
552
// 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