Skip to content

Commit

Permalink
chore: re-enable transaction fees on interlay
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
  • Loading branch information
gregdhill committed Apr 11, 2022
1 parent 9227890 commit 3104065
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parachain/runtime/interlay/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,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 @@ -317,8 +317,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 3104065

Please sign in to comment.