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

Fix staking amount #2238

Merged
merged 2 commits into from
Apr 29, 2024
Merged

Conversation

Thoralf-M
Copy link
Member

@Thoralf-M Thoralf-M commented Apr 29, 2024

Description of change

Fix staking amount when start staking and also don't set the account output amount to min amount when extending staking

Links to any relevant issues

Fixes #2236

Type of change

  • Bug fix (a non-breaking change which fixes an issue)

How the change has been tested

Staked the full amount with the cli

Balance {
    base_coin: BaseCoinBalance {
        total: 2000000000,
...
Wallet "wallet": begin-staking 0xac7470df11783cdc153689da2a0bd138c99dc351f530099538afadb4b5a89b14 2000000000 2
Stronghold password: [hidden]
Begin staking for 0xac7470df11783cdc153689da2a0bd138c99dc351f530099538afadb4b5a89b14.
Begin staking transaction sent:
TransactionId { id: "0xb4c36cb18b6085e8c21dc494a05273f62fe1489ba764a8d6892538c8d02d00f4c9270100", slot_index: SlotIndex(75721) }
Some(BlockId { id: "0xf9ed06be0122e4328c19207d987a15e8ac663e40c1aebac2692c0d891f0bd058c9270100", slot_index: SlotIndex(75721) })

@Thoralf-M Thoralf-M marked this pull request as draft April 29, 2024 09:31
@Thoralf-M Thoralf-M marked this pull request as ready for review April 29, 2024 10:26
@thibault-martinez thibault-martinez merged commit 1a231ee into iotaledger:2.0 Apr 29, 2024
37 checks passed
@Thoralf-M Thoralf-M deleted the fix-staking-amount branch April 29, 2024 13:03
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.

3 participants