Skip to content

Commit e1fded8

Browse files
committed
Remove unused verify_post_discount
1 parent 664ab0b commit e1fded8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

fvm/src/gas/price_list.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ lazy_static! {
121121
.iter()
122122
.copied()
123123
.collect(),
124-
verify_post_discount: false,
125124
};
126125
}
127126

@@ -241,7 +240,6 @@ pub struct PriceList {
241240
pub(crate) verify_aggregate_seal_steps: AHashMap<RegisteredSealProof, StepCost>,
242241

243242
pub(crate) verify_post_lookup: AHashMap<RegisteredPoStProof, ScalingCost>,
244-
pub(crate) verify_post_discount: bool,
245243
pub(crate) verify_consensus_fault: i64,
246244
pub(crate) verify_replica_update: i64,
247245
}
@@ -404,10 +402,7 @@ impl PriceList {
404402
.expect("512MiB lookup must exist in price table")
405403
});
406404

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;
411406

412407
GasCharge::new("OnVerifyPost", gas_used, 0)
413408
}

0 commit comments

Comments
 (0)