Skip to content

Commit 4c49f8a

Browse files
shamb0xlcshawntabriziParity Benchmarking Botkianenigma
authored
Allow council to slash treasury tip (#7753)
* wk2051 | D4 |Allow council to slash treasury tip | p1 * Update frame/tips/src/lib.rs Co-authored-by: Xiliang Chen <[email protected]> * wk2051 | D5 |Allow council to slash treasury tip | p2 * wk2051 | D5 |Allow council to slash treasury tip | p3 * wk2051 | D5 |Allow council to slash treasury tip | p4 * wk2051 | D5 |Allow council to slash treasury tip | p5 * random change * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_tips --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/tips/src/weights.rs --template=./.maintain/frame-weight-template.hbs * fix typo * Update frame/tips/src/lib.rs Co-authored-by: Kian Paimani <[email protected]> * Update frame/tips/src/lib.rs Co-authored-by: Kian Paimani <[email protected]> * Update frame/tips/src/lib.rs Co-authored-by: Kian Paimani <[email protected]> * Update frame/tips/src/lib.rs Co-authored-by: Kian Paimani <[email protected]> * Update frame/tips/src/tests.rs Co-authored-by: Kian Paimani <[email protected]> * wk2052 | D1 | Allow council to slash treasury tip | p6 Co-authored-by: Xiliang Chen <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: Parity Benchmarking Bot <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
1 parent d8cb6cf commit 4c49f8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/benchmarking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn create_approved_proposals<T: Config<I>, I: Instance>(n: u32) -> Result<(), &'
5959
Ok(())
6060
}
6161

62-
fn setup_pod_account<T: Config<I>, I: Instance>() {
62+
fn setup_pot_account<T: Config<I>, I: Instance>() {
6363
let pot_account = Treasury::<T, I>::account_id();
6464
let value = T::Currency::minimum_balance().saturating_mul(1_000_000_000u32.into());
6565
let _ = T::Currency::make_free_balance_be(&pot_account, value);
@@ -97,7 +97,7 @@ benchmarks_instance! {
9797

9898
on_initialize_proposals {
9999
let p in 0 .. 100;
100-
setup_pod_account::<T, _>();
100+
setup_pot_account::<T, _>();
101101
create_approved_proposals::<T, _>(p)?;
102102
}: {
103103
Treasury::<T, _>::on_initialize(T::BlockNumber::zero());

0 commit comments

Comments
 (0)