Skip to content

Conversation

@random-zebra
Copy link

@random-zebra random-zebra commented Jan 14, 2020

Transactions spending P2CS utxos (voiding the delegations) were not displaying properly both in the staker and the owner wallet.
Although the TransactionRecord was correctly parsed as either P2CSUnlockOwner or P2CSUnlockStaker, these were never connected in the table model.
This closes #1262, fixing it.

For the moment, it is shown with the same icon as the delegation received and a negative amount in red.
We can, alternatively, use the "sending" red icon, or (later) design a new one, specifically for this kind of record.
Examples on the staker wallet:

--Before
Screenshot from 2020-01-14 11-52-03

--After
Screenshot from 2020-01-14 12-12-25

--After (with outgoing icon)
Screenshot from 2020-01-14 11-47-39

@random-zebra random-zebra self-assigned this Jan 14, 2020
@random-zebra random-zebra added this to the 4.0.2 milestone Jan 14, 2020
@furszy
Copy link

furszy commented Jan 14, 2020

If P2CSUnlockOwner spend the amount to an internal address it needs to be a receive, not in red.

@random-zebra
Copy link
Author

in that case it should show (in red) only the fee amount (credit + debit).

furszy
furszy previously approved these changes Jan 14, 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.

ACK 58d5484

Mrs-X
Mrs-X previously approved these changes Jan 14, 2020
Copy link

@Mrs-X Mrs-X left a comment

Choose a reason for hiding this comment

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

utACK 58d5484

@random-zebra
Copy link
Author

This needs rebase after merge of #1263

@random-zebra random-zebra dismissed stale reviews from Mrs-X and furszy via 4b24380 January 14, 2020 17:32
@random-zebra random-zebra force-pushed the 2020_GUI_delegation_spent branch from 58d5484 to 4b24380 Compare January 14, 2020 17:32
@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.

Rebase fine, all good here.

random-zebra added a commit that referenced this pull request Jan 14, 2020
…ds to the model

4b24380 [GUI] Connect P2CSUnlockOwner and P2CSUnlockStaker records to the model (random-zebra)

Pull request description:

  Transactions spending P2CS utxos (voiding the delegations) were not displaying properly both in the staker and the owner wallet.
  Although the TransactionRecord was correctly parsed as either `P2CSUnlockOwner` or `P2CSUnlockStaker`, these were never connected in the table model.
  This closes #1262, fixing it.

  For the moment, it is shown with the same icon as the delegation received and a negative amount in red.
  We can, alternatively, use the "sending" red icon, or (later) design a new one, specifically for this kind of record.
  Examples on the staker wallet:

  *--Before*
  ![Screenshot from 2020-01-14 11-52-03](https://user-images.githubusercontent.com/18186894/72339633-e7e21780-36c6-11ea-8083-f25194a4f461.png)
  <br>

  *--After*
  ![Screenshot from 2020-01-14 12-12-25](https://user-images.githubusercontent.com/18186894/72339764-2d9ee000-36c7-11ea-8a5c-fa3b20f3c4aa.png)
  <br>

  *--After (with outgoing icon)*
  ![Screenshot from 2020-01-14 11-47-39](https://user-images.githubusercontent.com/18186894/72339642-f03a5280-36c6-11ea-8cae-e80f14a92155.png)

Top commit has no ACKs.

Tree-SHA512: fd265ca77ef5ba2243193fa042c5ef8ace23a90394b8a0f31f56dc6b07bc45f823f2b4f140117cde1e6e5196019c703bd50c3b6f838e7289fa81d2cf3d027410
@random-zebra random-zebra merged commit 4b24380 into PIVX-Project:master Jan 14, 2020
Fuzzbawls pushed a commit to Fuzzbawls/PIVX that referenced this pull request Jan 16, 2020
furszy added a commit that referenced this pull request Jan 16, 2020
4663310 [GUI] Min window size (furszy)
5c76d51 Doc: Update manpages for 4.0.2 (Fuzzbawls)
79bfec9 Build: Bump version to 4.0.2 (Fuzzbawls)
82d0af7 Doc: Update release notes for 4.0.2 (Fuzzbawls)
3432e29 [GUI] Transaction record cold staking fixes. (furszy)
e5badbc [RPC] Don't do extra PoW round for pos blocks in 'generate' RPC Github-Pull: #1274 Rebased-From: 6b5ce00 (random-zebra)
7b8169c [Trivial] Update copyright headers for 4.0.2 (Fuzzbawls)
8faf4bf [Core] Update checkpoints for first v7 block (Fuzzbawls)
f6e8a14 [GUI] Add latest block number to topbar pushButtonSync Github-Pull: #1268 Rebased-From: 84b4ae4 (random-zebra)
8edfa83 [GUI] Connect P2CSUnlockOwner and P2CSUnlockStaker records to the model Github-Pull: #1265 Rebased-From: 4b24380 (random-zebra)
e475827 [GUI] CoinControlDialog, removing extra spacing char from the copy to clipboard texts. (furszy)
dbe2b3a [GUI] CoinControlDialog, copy to clipboard action implemented on every showed label + inform snackbar notifying the user. (furszy)
3404bd9 [Wallet] Don't add P2CS automatically to CWalletTx::GetLockedCredit Github-Pull: #1264 Rebased-From: 4789652 (random-zebra)
d1f5731 [GUI] Force NavMenu to show dashboard button at startup. (furszy)
cdee261 [GUI] Open the app's window in the smallest, currently available, size. (furszy)
fc766c8 [GUI] TransactionRecord type P2CSDelegationSentOwner and P2CSDelegationSent distinction. (furszy)
49de2e4 [Qt][Bug] Load the most recent instead of the first transactions (Fuzzbawls)
827ca3e [Bug][GUI] Double counted delegated balance fix. (furszy)

Pull request description:

  Updates the `4.0` branch with relevant merged PRs in preparation for tagging the `4.0.2` release.

  Included PRs:
  #1261
  #1267
  #1263
  #1266
  #1264
  #1269
  #1265
  #1268
  #1273
  #1272
  #1274
  #1279

Top commit has no ACKs.

Tree-SHA512: 561d9319d08756c040751c6ce145505610ed2ebc4351a87d9d3bb05ecb98df9f35d492e9e3eb7e111ce611268c4a24bb13720e3f81917a671038f8ab23f14de4
@random-zebra random-zebra deleted the 2020_GUI_delegation_spent branch September 24, 2020 00:27
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.

[GUI] Received coins from staking addresses show as "No Information"

3 participants