Skip to content

Commit

Permalink
Adjust weight consumption in parachain-staking (#3258)
Browse files Browse the repository at this point in the history
* reduce delegator count

* use default pallet weights
  • Loading branch information
Kailai-Wang authored Feb 14, 2025
1 parent 4a5e812 commit 7ac8200
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions parachain/runtime/litentry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1008,9 +1008,9 @@ impl pallet_parachain_staking::Config for Runtime {
/// Minimum collators selected per round, default at genesis and minimum forever after
type MinSelectedCandidates = ConstU32<1>;
/// Maximum top delegations per candidate
type MaxTopDelegationsPerCandidate = ConstU32<1000>;
type MaxTopDelegationsPerCandidate = ConstU32<300>;
/// Maximum bottom delegations per candidate
type MaxBottomDelegationsPerCandidate = ConstU32<200>;
type MaxBottomDelegationsPerCandidate = ConstU32<100>;
/// Maximum delegations per delegator
type MaxDelegationsPerDelegator = ConstU32<100>;
type DefaultCollatorCommission = DefaultCollatorCommission;
Expand All @@ -1025,7 +1025,7 @@ impl pallet_parachain_staking::Config for Runtime {
type MinDelegatorStk = MinDelegatorStk;
type OnCollatorPayout = ();
type OnNewRound = ();
type WeightInfo = weights::pallet_parachain_staking::WeightInfo<Runtime>;
type WeightInfo = ();
type IssuanceAdapter = AssetsHandler;
type OnAllDelegationRemoved = ScoreStaking;
}
Expand Down
6 changes: 3 additions & 3 deletions parachain/runtime/paseo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1053,9 +1053,9 @@ impl pallet_parachain_staking::Config for Runtime {
/// Minimum collators selected per round, default at genesis and minimum forever after
type MinSelectedCandidates = ConstU32<1>;
/// Maximum top delegations per candidate
type MaxTopDelegationsPerCandidate = ConstU32<1000>;
type MaxTopDelegationsPerCandidate = ConstU32<300>;
/// Maximum bottom delegations per candidate
type MaxBottomDelegationsPerCandidate = ConstU32<200>;
type MaxBottomDelegationsPerCandidate = ConstU32<100>;
/// Maximum delegations per delegator
type MaxDelegationsPerDelegator = ConstU32<100>;
type DefaultCollatorCommission = DefaultCollatorCommission;
Expand All @@ -1070,7 +1070,7 @@ impl pallet_parachain_staking::Config for Runtime {
type MinDelegatorStk = MinDelegatorStk;
type OnCollatorPayout = ();
type OnNewRound = ();
type WeightInfo = weights::pallet_parachain_staking::WeightInfo<Runtime>;
type WeightInfo = ();
type IssuanceAdapter = AssetsHandler;
type OnAllDelegationRemoved = ScoreStaking;
}
Expand Down
6 changes: 3 additions & 3 deletions parachain/scripts/benchmark-weight-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ docker pull litentry/litentry-parachain:runtime-benchmarks
# clone the repo
TMPDIR=/tmp
cd "$TMPDIR"
[ -d litentry-parachain ] && rm -rf litentry-parachain
git clone https://github.com/litentry/litentry-parachain
cd litentry-parachain/parachain
[ -d heima ] && rm -rf heima
git clone https://github.com/litentry/heima
cd heima/parachain
git checkout "$2"

# copy binary out
Expand Down

0 comments on commit 7ac8200

Please sign in to comment.