Skip to content

Commit

Permalink
Set balance to the double of stakingBond
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola committed Jan 21, 2025
1 parent d7b259b commit e137b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/packages/orchestrator/src/chainSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ export async function addBalances(specPath: string, nodes: Node[]) {
const balanceToAdd = stakingBond
? node.validator && node.balance > stakingBond
? node.balance
: stakingBond! + BigInt(1)
: stakingBond! * BigInt(2) // Double the balance we use for stake
: node.balance;

balanceMap[stashKey] = balanceToAdd;

const logLine = `👤 Added Balance ${

Check failure on line 138 in javascript/packages/orchestrator/src/chainSpec.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Replace `⏎··········balanceToAdd⏎········` with `balanceToAdd`

Check failure on line 138 in javascript/packages/orchestrator/src/chainSpec.ts

View workflow job for this annotation

GitHub Actions / build (19.x)

Replace `⏎··········balanceToAdd⏎········` with `balanceToAdd`

Check failure on line 138 in javascript/packages/orchestrator/src/chainSpec.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Replace `⏎··········balanceToAdd⏎········` with `balanceToAdd`
node.balance
balanceToAdd
} for ${decorators.green(node.name)} - ${decorators.magenta(stashKey)}`;
new CreateLogTable({
colWidths: [120],
Expand Down

0 comments on commit e137b84

Please sign in to comment.