Skip to content

Commit

Permalink
do not clear staking for paras, iff present (#1977)
Browse files Browse the repository at this point in the history
* do not clear staking for paras, iff present

* typo
  • Loading branch information
pepoviola authored Mar 4, 2025
1 parent 186c3ba commit 563b2fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions javascript/packages/orchestrator/src/chainSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ export function clearAuthorities(specPath: string) {
if (runtimeConfig?.collatorSelection)
runtimeConfig.collatorSelection.invulnerables = [];

// clear staking
if (runtimeConfig?.staking) {
// clear staking (IFF not a para)
// TODO: in the future we should add an option to override or not
if (runtimeConfig?.staking && !runtimeConfig.parachainInfo) {
// Set `stakingBond` IFF there is at least one
if (runtimeConfig.staking.stakers[0])
stakingBond = BigInt(runtimeConfig.staking.stakers[0][2]);
Expand Down

0 comments on commit 563b2fc

Please sign in to comment.