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

no clear error when channel opening failing when no room in utxos for change #367

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RodriFS
Copy link
Contributor

@RodriFS RodriFS commented Feb 12, 2024

Since there is no way to calculate the fees before the PSBT is generated, we can't warn the user that there is no room in utxos for fees when doing operations with change. At least now there is a warning if the amount is equal which might happen if the user forgets to click on changeless. And also added a clear error message (visible to the user) when this happens

Comment on lines -235 to -239
else if (selectedUTXOsValue > maxChannelRegtestValue && network == Network.RegTest && IsWalletWithdrawalValidation)
{
e.ErrorText = $"The combined amount of the UTXOs selected must be lower than {maxChannelRegtestValue:f8} BTC";
e.Status = ValidationStatus.Error;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

since we can do coin selection with change, this doesn't make sense anymore

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.

None yet

1 participant