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

Adjust weight consumption in parachain-staking #3258

Merged
merged 4 commits into from
Feb 14, 2025
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
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