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

[GUI] cs widget: minor usability improvements #1652

Merged

Conversation

random-zebra
Copy link

Three simple fixes to the cold staking widget:

  1. give immediate feedback (with red outline) when the owner address is not valid (same as we have with SendMultiRow objects, e.g. the staker address in this widget). Closes [Feature request] Add warning if invalid address is entered into Owner address field #1596

  2. on send: try to unlock the wallet only when all validity checks are passing.

  3. since the address shown on the confirmation dialog is the staker, change the label "Sending to" in "Delegating to".

Do not try to unlock the wallet if either:
- cold staking is disabled
- the owner or staker address are not valid
- the amount is below the minimum allowed
- the external delegation warning dialog is not accepted
- both addresses are internal
ambassador000
ambassador000 previously approved these changes May 30, 2020
Copy link

@ambassador000 ambassador000 left a comment

Choose a reason for hiding this comment

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

Functionality tested, working as intended.

Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

Code review ACK, nice adds.

src/qt/pivx/sendconfirmdialog.cpp Outdated Show resolved Hide resolved
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

review ACK ba7a8fd .

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

utACK ba7a8fd

@random-zebra random-zebra merged commit a2850ce into PIVX-Project:master Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Add warning if invalid address is entered into Owner address field
4 participants