aspectron / kdx

Kaspa Desktop Wallet based on the Kaspa Wallet framework
30 stars 26 forks source link

Wallet total and Transaction Total do not match #23

Open username-rand opened 2 years ago

username-rand commented 2 years ago

I was trying to balance my transactions against the KDX Wallet total and they do not match. The difference appears to be two missing node award transactions, or the Wallet total is wrong. That Wallet total is greater than the transaction total. Let me know if you need more information. I've also looked at the transactions in KDX Wallet compared to Kaspa Blockchain Explorer. There is lots of discrepancy. I cannot trust the KDX Wallet at the moment.

Thanks

Rand

aspect commented 2 years ago

Kaspa uses pruning that can result in a loss of transaction information if the wallet is not online/active when a transaction occurs and the pruning window has passed. The balance for an address is updated and there is a record of a UTXO (input) that was received (against the address), but the wallet itself has no record of a transaction. The node cryptographically verifies the reception but wallet does not provide this information (we have recently added a UTXO view in the UI where you see all received unspent inputs, but these are not transactions per-say and disappear when used). This is a side effect of Kaspa design. As a result your wallet, if kept offline for a period of time, can result in larger balance (and if cloned and used externally, this can result in a smaller balance).

username-rand commented 2 years ago

Thank you for the prompt reply.   My issue is that I need an accurate accounting of every transaction for my ledger.  Perhaps using the blockchain explorer instead of the KDX wallet will solve my problem.Thanks againRandSent from my iPhoneOn Sep 19, 2022, at 7:32 PM, aspect @.***> wrote: Kaspa uses pruning that can result in a loss of transaction information if the wallet is not online/active when a transaction occurs and the pruning window has passed. The balance for an address is updated and there is a record of a UTXO (input) that was received (against the address), but the wallet itself has no record of a transaction. The node cryptographically verifies the reception but wallet does not provide this information (we have recently added a UTXO view in the UI where you see all received unspent inputs, but these are not transactions per-say and disappear when used). This is a side effect of Kaspa design. As a result your wallet, if kept offline for a period of time, can result in larger balance (and if cloned and used externally, this can result in a smaller balance).

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>