Closed Demontager closed 1 month ago
LWS doesn't have the spend private key, so it cannot compute the correct balance. The spend key is needed to determine the "real" spends, and filter out the times an output was used in someone else's ring signature. This should change with "carrot" (the next version of Monero addresses), where LWS could have a balance-view-key but still not have the spend key.
The total_received
and total_sent
aren't particularly useful (IMO), but an original part of the spec. The total_received
includes change, and total_sent
includes "dummy" spends, so the numbers can't really be used directly.
It does look like LWS is missing a receive, so perhaps a rescan from an earlier height is needed?
It does look like LWS is missing a receive, so perhaps a rescan from an earlier height is needed?
Rescanning from earlier hight doesn't change figures. I thought mymonero using some sort of modified LWS as you wrote earlier and therefore provides actual balance. Is it possible to provide LWS with private spend key instead to calculate correct balance?
I thought mymonero using some sort of modified LWS as you wrote earlier and therefore provides actual balance. Is it possible to provide LWS with private spend key instead to calculate correct balance?
Not currently. The closest is the unfinished lwfs project.
Perhaps a custom REST endpoint (for just for the balance) or a small custom frontend for the same. Thoughts?
Perhaps a custom REST endpoint (for just for the balance) or a small custom frontend for the same. Thoughts?
I'd personally prefer REST endpoint rather than dedicated project, because it has very close origin to what lws has now.
While running monerod-lws-daemon development against monero master in stagenet i have noticed that monero-lws rest server responds with a wrong account balance, but when i call monero-wallet-rpc it replies with correct one.
Getting balance with monero-lws while fully synced to pruned stagenet:
Now counting wallet balance total_received: 19899926890000 - total_sent: 19899926890000 = 0
And getting actual correct balance by calling wallet rpc server