File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ lazy_static! {
121
121
. iter( )
122
122
. copied( )
123
123
. collect( ) ,
124
- verify_post_discount: false ,
125
124
} ;
126
125
}
127
126
@@ -241,7 +240,6 @@ pub struct PriceList {
241
240
pub ( crate ) verify_aggregate_seal_steps : AHashMap < RegisteredSealProof , StepCost > ,
242
241
243
242
pub ( crate ) verify_post_lookup : AHashMap < RegisteredPoStProof , ScalingCost > ,
244
- pub ( crate ) verify_post_discount : bool ,
245
243
pub ( crate ) verify_consensus_fault : i64 ,
246
244
pub ( crate ) verify_replica_update : i64 ,
247
245
}
@@ -404,10 +402,7 @@ impl PriceList {
404
402
. expect ( "512MiB lookup must exist in price table" )
405
403
} ) ;
406
404
407
- let mut gas_used = cost. flat + info. challenged_sectors . len ( ) as i64 * cost. scale ;
408
- if self . verify_post_discount {
409
- gas_used /= 2 ;
410
- }
405
+ let gas_used = cost. flat + info. challenged_sectors . len ( ) as i64 * cost. scale ;
411
406
412
407
GasCharge :: new ( "OnVerifyPost" , gas_used, 0 )
413
408
}
You can’t perform that action at this time.
0 commit comments