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

Set balance to the double of stakingBond #1940

Merged
merged 2 commits into from
Jan 21, 2025
Merged

Set balance to the double of stakingBond #1940

merged 2 commits into from
Jan 21, 2025

Conversation

pepoviola
Copy link
Collaborator

fix #1939

cc @Ank4n

@@ -130,14 +130,12 @@ 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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only need to add ED to staking bond, but this is also fine since staking bond should always be greater than ED.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Yes, set to the double is an easy fix.

@pepoviola pepoviola merged commit 2103782 into main Jan 21, 2025
19 checks passed
@pepoviola pepoviola deleted the fix-1939 branch January 21, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inc. balance for staking accounts
2 participants