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: show warning on missing fee config values #674

Merged
merged 6 commits into from
Oct 12, 2023

Conversation

theborakompanioni
Copy link
Collaborator

@theborakompanioni theborakompanioni commented Oct 10, 2023

Resolves #673.

Before this PR, the error message for missing max_cj_fee_abs and max_cj_fee_rel has only been displayed after an attempt to send a collaborative transaction failed. The fee config modal was unusable if these configs had no value applied.

After this PR, the message is shown immediately and the send form is disabled. The fee config modal can be used normally.

📸

How to test

Uncomment one (or both) of config values max_cj_fee_abs and max_cj_fee_rel in the file default.cfg and build your dev setup env with npm run regtest:build.

@theborakompanioni theborakompanioni force-pushed the chore/mandatory-config-values branch from b42de4c to 1123af9 Compare October 10, 2023 20:52
@theborakompanioni theborakompanioni self-assigned this Oct 11, 2023
@theborakompanioni theborakompanioni added the enhancement New feature or request label Oct 11, 2023
@theborakompanioni theborakompanioni requested review from editwentyone and a team October 12, 2023 14:23
@theborakompanioni theborakompanioni marked this pull request as ready for review October 12, 2023 14:23
Copy link

@editwentyone editwentyone left a comment

Choose a reason for hiding this comment

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

cACK

@theborakompanioni theborakompanioni merged commit 5f20ee4 into master Oct 12, 2023
3 checks passed
@theborakompanioni theborakompanioni deleted the chore/mandatory-config-values branch October 12, 2023 15:37
theborakompanioni added a commit that referenced this pull request Oct 12, 2023
* fix(send): show warning on missing fee config values

* fix(fee): allow missing fee config values to be updated

* feat(fee): open fee config modal from fee warning alert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing max_cj_fee_abs and max_cj_fee_rel in configuration file could be handled better
2 participants