-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zingocli: summaries crash with funded viewkey #553
Comments
data.rs:948
|
This happens to me as well in a wallet that includes the spending key. |
The calculation seems suspicious in that it may assume that the transaction is an outbound one. e.g. if it's inbound, one cannot calculate the |
I wonder if this is related to #567, which reports one spend twice. I could see that causing the fee to be negative. |
Ultimately, in order to support incoming transactions, isn't the only reliable way to calculate fee to look at the turnstiles and transparent elements of a transaction to find out how much ZEC wasn't accounted for? Something like: |
#565 should fix this, once it's finished. |
trying to catch this in a test. it doesnt happen in the basic modern test case... hmm |
list_transactions summaries please note that sent out 30_000_000_000 = 15_000_000_000 + 15_000_000_000 |
Generally, we don't care about the fee for an incoming-only transaction, and it's not strictly necessary for the outgoing case. I've looked into chasing down the transparent part of the turnstile before and it's not as easy as I would expect it to be, but given the amount of bugs we've been dealing with in order to avoid it it's probably the right solution at this point, rather than continuing to jump through hoops to avoid it. |
The text was updated successfully, but these errors were encountered: