Companion for substrate#8665 (Bounded Treasury) (#2932)

* Add MaxApprovals for Bounded Treasury

* update weight

* update Substrate

* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/

* cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

Co-authored-by: parity-processbot <>
Co-authored-by: Parity Benchmarking Bot <admin@parity.io>
This commit is contained in:
Shawn Tabrizi
2021-04-26 12:09:42 -04:00
committed by GitHub
parent d4ddf8d7e8
commit 9c0bb140c8
6 changed files with 175 additions and 165 deletions
+2
View File
@@ -568,6 +568,7 @@ parameter_types! {
pub const MaximumReasonLength: u32 = 16384;
pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);
pub const BountyValueMinimum: Balance = 2 * DOLLARS;
pub const MaxApprovals: u32 = 100;
}
type ApproveOrigin = EnsureOneOf<
@@ -589,6 +590,7 @@ impl pallet_treasury::Config for Runtime {
type Burn = Burn;
type BurnDestination = Society;
type SpendFunds = Bounties;
type MaxApprovals = MaxApprovals;
type WeightInfo = weights::pallet_treasury::WeightInfo<Runtime>;
}