Skip to content

Commit

Permalink
Merge pull request #570 from gregdhill/chore/interlay-tx-fees
Browse files Browse the repository at this point in the history
chore: re-enable transaction fees on interlay
  • Loading branch information
sander2 committed Apr 14, 2022
2 parents 12ec434 + 3104065 commit 81f8e05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parachain/runtime/interlay/src/lib.rs
Expand Up @@ -133,7 +133,7 @@ parameter_types! {
pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder()
.base_block(BlockExecutionWeight::get())
.for_class(DispatchClass::all(), |weights| {
weights.base_extrinsic = 0; // TODO: this is 0 so that we can do runtime upgrade without fees. Restore value afterwards!
weights.base_extrinsic = ExtrinsicBaseWeight::get();
})
.for_class(DispatchClass::Normal, |weights| {
weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
Expand Down Expand Up @@ -304,8 +304,7 @@ pub type SlowAdjustingFeeUpdate<R> =
TargetedFeeAdjustment<R, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier>;

parameter_types! {
// TODO: this is 0 so that we can do runtime upgrade without fees. Restore value afterwards!
pub const TransactionByteFee: Balance = 0;
pub const TransactionByteFee: Balance = MILLICENTS;
/// This value increases the priority of `Operational` transactions by adding
/// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.
pub OperationalFeeMultiplier: u8 = 5;
Expand Down

0 comments on commit 81f8e05

Please sign in to comment.