Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ New CT Migration benchmarks #346

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,23 @@ benchmark-pallet chain="polimec-paseo-local" pallet="pallet-dispenser":
--output=pallets/{{ replace(pallet, "pallet-", "") }}/src/weights.rs \
--template=./.maintain/frame-weight-template.hbs


benchmark-extrinsics pallet="pallet-funding" extrinsics="*" :
cargo run --features runtime-benchmarks --profile=production -p polimec-node benchmark pallet \
JuaniRios marked this conversation as resolved.
Show resolved Hide resolved
--chain=polimec-paseo-local \
JuaniRios marked this conversation as resolved.
Show resolved Hide resolved
--steps=10 \
--repeat=5 \
--pallet={{ pallet }} \
--no-storage-info \
--no-median-slopes \
--no-min-squares \
--extrinsic={{ extrinsics }} \
--wasm-execution=compiled \
--heap-pages=4096 \
--output=benchmarked-extrinsics.rs \
--template=./.maintain/frame-weight-template.hbs


# Build the Node Docker Image
docker-build tag="latest" package="polimec-node":
./scripts/build_image.sh {{ tag }} ./Dockerfile {{ package }}
Expand Down
4 changes: 0 additions & 4 deletions nodes/parachain/src/chain_spec/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ pub fn genesis_config(genesis_config_params: GenesisConfigParams) -> serde_json:
} = genesis_config_params;

let system_accounts = vec![
(
<Runtime as pallet_funding::Config>::BlockchainOperationTreasury::get(),
<Runtime as pallet_funding::Config>::NativeCurrency::minimum_balance(),
),
(
<Runtime as pallet_funding::Config>::ContributionTreasury::get(),
<Runtime as pallet_funding::Config>::NativeCurrency::minimum_balance(),
Expand Down
3 changes: 2 additions & 1 deletion nodes/parachain/src/chain_spec/polimec_paseo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ use polimec_runtime::{AccountId, MinCandidateStk};

pub fn get_local_chain_spec() -> GenericChainSpec {
let endowed_accounts = vec![alice(), bob(), charlie(), dave()];
let endowed_accounts = endowed_accounts.iter().map(|x| (x.clone(), MinCandidateStk::get() * 5)).collect::<Vec<_>>();
let endowed_accounts =
endowed_accounts.iter().map(|x| (x.clone(), MinCandidateStk::get() * 20)).collect::<Vec<_>>();
let genesis_config_params = GenesisConfigParams {
stakers: vec![alice(), bob()],
council_members: vec![alice()],
Expand Down
Loading