oxen-core icon indicating copy to clipboard operation
oxen-core copied to clipboard

Server Node Staking :: All Function

Open englishcoder opened this issue 6 years ago • 1 comments

There appears to be an issue with the Staking "All" button. Tested multiple times and the wallet accepts the staking request at first but rolls back the txn amount (it changes to 0) and returns the coins to the wallet as unlocked at the end of the txn confirmations.

After testing further it appears the issue might be that the LOKI necessary for the staking txn are not considered in the All and since there is now a zero balance it does not have the LOKI necessary to pay the txn rolling it back.

Recommendation is to either hold back some LOKI to pay for the staking txn with a note indicating why that was excluded for All.

englishcoder avatar Jun 24 '19 06:06 englishcoder

There is special logic in the "All" function when doing a transfer that subtracts the fee from the transferred amount when the transferred amount is the entire balance (essentially turning it into a sweep). That logic is probably missing from the stake command.

jagerman avatar Jun 25 '19 14:06 jagerman