Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Jan 15, 2020

  1. Cold stakes status was not set properly, there was no immature status set or "xxx blocks to mature" calculated, among other status fields missing.

  2. GetCredit method in P2CS in wallets with both private keys is returning the real credit amount doubled because of be summing the cold staking credit and the delegated credit of the exact same utxo.

Quick fix to solve it, only request one of them, not the final solution.

@furszy furszy self-assigned this Jan 15, 2020
@furszy furszy added this to the 4.0.2 milestone Jan 15, 2020
1) Cold stakes status was not set properly, there was no immaturity or "xxx blocks to mature" calculated.

2) GetCredit method in P2CS in wallets with both private keys is returning the real credit amount doubled because of be summing the cold staking credit and the delegated credit of the exact same utxo.

   Quick fix to solve it, only request one of them.. not the final solution.
@furszy furszy force-pushed the 2020_transaction_record_cold_staking branch from c4e420c to e6fc91a Compare January 15, 2020 22:22
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

ACK e6fc91a

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 e6fc91a

Fuzzbawls added a commit that referenced this pull request Jan 16, 2020
e6fc91a [GUI] Transaction record cold staking fixes. (furszy)

Pull request description:

  1) Cold stakes status was not set properly, there was no immature status set or "xxx blocks to mature" calculated, among other status fields missing.

  2) GetCredit method in P2CS in wallets with both private keys is returning the real credit amount doubled because of be summing the cold staking credit and the delegated credit of the exact same utxo.

  Quick fix to solve it, only request one of them, not the final solution.

ACKs for top commit:
  random-zebra:
    ACK e6fc91a
  Fuzzbawls:
    ACK e6fc91a

Tree-SHA512: 4ebf0aa73940912f86a735944dbd4285eb876a3eef207bc8e9d228e860907b4d326ccb248d0f01605fe8fc8a6bd1648d357f2725eb1732c99f790a9e9b1c4896
@Fuzzbawls Fuzzbawls merged commit e6fc91a into PIVX-Project:master Jan 16, 2020
Fuzzbawls pushed a commit to Fuzzbawls/PIVX that referenced this pull request Jan 16, 2020
1) Cold stakes status was not set properly, there was no immaturity or "xxx blocks to mature" calculated.

2) GetCredit method in P2CS in wallets with both private keys is returning the real credit amount doubled because of be summing the cold staking credit and the delegated credit of the exact same utxo.

   Quick fix to solve it, only request one of them.. not the final solution.

Github-Pull: PIVX-Project#1279
Rebased-From: e6fc91a
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
@furszy furszy deleted the 2020_transaction_record_cold_staking branch November 29, 2022 14:28
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.

3 participants