Skip to content

Commit

Permalink
Decreased TX prices from 50x to 10x. Decreased payout weights (#385)
Browse files Browse the repository at this point in the history
* Decreased TX prices from 50x to 10x. Decreased payout weights

* Increased spec version
  • Loading branch information
markopoloparadox authored Jan 26, 2024
1 parent 828b259 commit db7a55c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions runtime/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ impl pallet_tips::Config for Runtime {
}

parameter_types! {
// Temporary increased price of all transactions by 50x
pub const WeightFee: Balance = 50 * PICO_AVL;
// Temporary increased price of all transactions by 10x
pub const WeightFee: Balance = 10 * PICO_AVL;
pub const TransactionByteFee: Balance = 100 * NANO_AVL; // 100 nanoAVL
pub const OperationalFeeMultiplier: u8 = 5u8;
pub const TargetBlockFullness: Perquintill = Perquintill::from_percent(50); // target_utilization 50%
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
/// Per convention: if the runtime behavior changes, increment spec_version
/// and set impl_version to 0. This paramenter is typically incremented when
/// there's an update to the transaction_version.
spec_version: 20,
spec_version: 21,
/// The version of the implementation of the specification. Nodes can ignore this. It is only
/// used to indicate that the code is different. As long as the authoring_version and the
/// spec_version are the same, the code itself might have changed, but the native and Wasm
Expand Down
8 changes: 4 additions & 4 deletions runtime/src/weights/pallet_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for SubstrateWeight<T>
// Measured: `20217 + n * (143 ±0)`
// Estimated: `19844 + n * (2603 ±1)`
// Minimum execution time: 91_767_000 picoseconds.
Weight::from_parts(100_000_000, 10_000)
Weight::from_parts(50_000_000, 5_000)
// Standard Error: 31_341
.saturating_add(Weight::from_parts(3_000_000, 0).saturating_mul(n.into()))
.saturating_add(Weight::from_parts(2_000_000, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2_u64))
Expand Down Expand Up @@ -488,9 +488,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for SubstrateWeight<T>
// Measured: `33190 + n * (377 ±0)`
// Estimated: `30845 + n * (3774 ±0)`
// Minimum execution time: 121_303_000 picoseconds.
Weight::from_parts(100_000_000, 10_000)
Weight::from_parts(50_000_000, 5_000)
// Standard Error: 41_899
.saturating_add(Weight::from_parts(3_000_000, 0).saturating_mul(n.into()))
.saturating_add(Weight::from_parts(2_000_000, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(11_u64))
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(3_u64))
Expand Down

2 comments on commit db7a55c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: db7a55c Previous: 33f7951 Ratio
commitment_builder/32 4202685758 ns/iter (± 41728828) 4325417137 ns/iter (± 81695432) 0.97
commitment_builder/64 4184550255 ns/iter (± 117245898) 4343451680 ns/iter (± 92231152) 0.96
commitment_builder/128 4593656933 ns/iter (± 73936603) 4647446215 ns/iter (± 137494514) 0.99
commitment_builder/256 2260774768 ns/iter (± 21510223) 2367397557 ns/iter (± 42776582) 0.95

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: db7a55c Previous: 909af7f Ratio
commitment_builder_32 Instructions 43493680261 ops (± 0) 43503093041 ops (± 0) 1.00
commitment_builder_32 L1 Accesses 53525308180 ops (± 0) 53514815042 ops (± 0) 1.00
commitment_builder_32 L2 Accesses 691271 ops (± 0) 700403 ops (± 0) 0.99
commitment_builder_32 RAM Accesses 93459 ops (± 0) 89904 ops (± 0) 1.04
commitment_builder_32 Estimated Cycles 53532035600 ops (± 0) 53521463697 ops (± 0) 1.00
commitment_builder_64 Instructions 41963186760 ops (± 0) 41972869826 ops (± 0) 1.00
commitment_builder_64 L1 Accesses 51417792793 ops (± 0) 51407870438 ops (± 0) 1.00
commitment_builder_64 L2 Accesses 826830 ops (± 0) 893120 ops (± 0) 0.93
commitment_builder_64 RAM Accesses 192386 ops (± 0) 191298 ops (± 0) 1.01
commitment_builder_64 Estimated Cycles 51428660453 ops (± 0) 51419031468 ops (± 0) 1.00
commitment_builder_128 Instructions 54192388999 ops (± 0) 54204175550 ops (± 0) 1.00
commitment_builder_128 L1 Accesses 68310530318 ops (± 0) 68301951624 ops (± 0) 1.00
commitment_builder_128 L2 Accesses 1241817 ops (± 0) 1258510 ops (± 0) 0.99
commitment_builder_128 RAM Accesses 259643 ops (± 0) 242507 ops (± 0) 1.07
commitment_builder_128 Estimated Cycles 68325826908 ops (± 0) 68316731919 ops (± 0) 1.00
commitment_builder_256 Instructions 31752222234 ops (± 0) 31758548180 ops (± 0) 1.00
commitment_builder_256 L1 Accesses 40836248044 ops (± 0) 40833274463 ops (± 0) 1.00
commitment_builder_256 L2 Accesses 6777946 ops (± 0) 6788005 ops (± 0) 1.00
commitment_builder_256 RAM Accesses 256935 ops (± 0) 239352 ops (± 0) 1.07
commitment_builder_256 Estimated Cycles 40879130499 ops (± 0) 40875591808 ops (± 0) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.