-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add Child Bounties to Polkadot and Kusama #4863
Add Child Bounties to Polkadot and Kusama #4863
Conversation
/benchmark runtime kusama pallet_child_bounties |
Benchmark Runtime Kusama Pallet for branch "shawntabrizi-add-child-bounties" with command cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/ Toolchain: stable-x86_64-unknown-linux-gnu (default) Results
|
/benchmark runtime polkadot pallet_child_bounties |
type DataDepositPerByte = DataDepositPerByte; | ||
type Event = Event; | ||
type MaximumReasonLength = MaximumReasonLength; | ||
type WeightInfo = weights::pallet_bounties::WeightInfo<Runtime>; | ||
} | ||
|
||
parameter_types! { | ||
pub const MaxActiveChildBountyCount: u32 = 100; | ||
pub const ChildBountyValueMinimum: Balance = BountyValueMinimum::get() / 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is too high IMO. There may be use cases where the child bounty rewards need to be quite low (example) or at least disproportionally low to the total bounty.
I propose a fixed min of 10 * DOLLARS
(which I believe is half the min of the main bounty).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be addressed in follow up PR
type DataDepositPerByte = DataDepositPerByte; | ||
type MaximumReasonLength = MaximumReasonLength; | ||
type WeightInfo = weights::pallet_bounties::WeightInfo<Runtime>; | ||
} | ||
|
||
parameter_types! { | ||
pub const MaxActiveChildBountyCount: u32 = 100; | ||
pub const ChildBountyValueMinimum: Balance = BountyValueMinimum::get() / 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as for Kusama
This is too high IMO. There may be use cases where the child bounty rewards need to be quite low (example) or at least disproportionally low to the total bounty.
I propose a fixed min of 5 * DOLLARS
(which I believe is half the min of the main bounty).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be addressed in follow up PR
…-- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Benchmark Runtime Polkadot Pallet for branch "shawntabrizi-add-child-bounties" with command cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/ Toolchain: stable-x86_64-unknown-linux-gnu (default) Results
|
…shawntabrizi-add-child-bounties
…-- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configuration looks reasonable, although I am not that familiar with the child bounties pallet
bot merge |
No description provided.