Skip to content

Conversation

@random-zebra
Copy link

@random-zebra random-zebra commented May 9, 2020

payAmounts were never set in CoinControlDialog, thus nPayAmount was always zero.
This resulted in two bugs:

  • nDust and nChange were always zero, thus their labels were never used
  • the nBytes calculated were wrong if the transaction had more than one output (thus the suggested fee was also wrong).

This PR removes some unused leftover, connects payAmounts (both from send and from coldstaking widgets) and fixes the tx-size calculation, considering also the cold-staking scripts (either as inputs and/or outputs/delegations).

Fixes point n.2 of #1609

@CaveSpectre11
Copy link

ACK f526ffa

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.

Concept ACK, great catch.

ambassador000
ambassador000 previously approved these changes May 14, 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.

furszy
furszy previously approved these changes May 23, 2020
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.

utACK f526ffa.

Left a comment for a future improvement in this area.

@random-zebra random-zebra dismissed stale reviews from furszy and ambassador000 via 23c4c41 May 23, 2020 15:37
@random-zebra random-zebra force-pushed the 202005_GUI_coincontrol-fix1 branch from f526ffa to 23c4c41 Compare May 23, 2020 15:37
@random-zebra
Copy link
Author

Updated first commit, removing findChild as per @furszy's suggestion

furszy
furszy previously approved these changes May 24, 2020
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.

re ACK 23c4c41 after the changes 👍

@random-zebra
Copy link
Author

Rebased.

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.

re re utACK 0f23f40

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.

ACK 0f23f40

@random-zebra random-zebra merged commit 3d9222e into PIVX-Project:master Jun 10, 2020
random-zebra added a commit that referenced this pull request Jun 17, 2020
2ad58fd [GUI] CoinControlDialog: fix SelectAll / UnselectAll (random-zebra)

Pull request description:

  Based on top of
  - [x] #1611

  Only last commit is new.
  This updates the flow of the toggle button SelectAll/UnselectAll in the coin control dialog (`pushButtonSelectAll`).

  - use directly the checked state of the button, instead of caching it in a separate variable `fSelectAllToggled`.

  - when the button is in checked ("Unselect all") state, reset it to its initial state (unchecked, with "Select all" label) if all the entries are either manually deselected, or automatically cleared after a spend)

  Closes point n.3 of #1609

ACKs for top commit:
  Fuzzbawls:
    ACK 2ad58fd
  furszy:
    utACK 2ad58fd

Tree-SHA512: 9f63cf2c99ebe887a89b6b17753ea7f398594860069ed694b6ee33bb2157606fa63336647d23b4df8ff36a8c7249320694a30f9d9e1d30a0200256a8267f9622
YuurinBee added a commit to ZENZO-Ecosystem/ZENZO-Core that referenced this pull request Feb 29, 2024
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.

5 participants