-
Notifications
You must be signed in to change notification settings - Fork 155
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
rpc/getbalance: totalimmaturestakegeneration return is higher than actual. #2103
Comments
Can you bisect the wallet between the last database upgrade (b728836) and the current master branch and see if/where this began happening? |
This started happening on release-v1.6.3 out of the blue, so I don't believe the db was upgraded by that commit. |
I'm thinking the log is unrelated. I probably just didn't notice it. I wonder if it has something to do with the tickets that are reported missed being expired by now. It looks like the balance does come from those revocations, but I wasn't seeing them added before. |
Or, maybe I started my wallet with it unlocked and then it got the tx hash it keeps trying to send. I didn't see it before because I never started my wallet unlocked, so it had no chance to sign, store, and try to send. That's why it still does this after reseeding, because it is always unlocked the first go. |
Ok. I am pretty sure this is a symptom of #2052 After reseeding and shutting down after the keys are derived but before sync is completed and txs sent, the balance is correct. I expect that anyone who voted on the treasury spend will see a bugged balance if they open their wallet while it's unlocked. If someone could confirm would be great. I think @davecgh may have a wallet to look at that voted then? |
Although #2052 seems to be resolved, the wallet will continue to try and send the transactions it stored and my balance is still off for the existing database. Maybe it should give up on sending transactions after certain errors that are probably not recoverable? Like spending a non-existent UTXO like the ticket that we thought was missed in this case. |
@davecgh suggested that I try However, I still think this should be automatic in some cases. Also, I had to start up wallet multiple times because it only tells me one tx hash per error. Also also, the txs do not show up in |
This started very recently on mainnet. When getting balance the total immature stake generation is shown as almost as much as my entire actual balance. This is added to the cumulative balance so that to is also off now. Have tried rescanning with a very high gap limit, reseeding, and running on master (was using 1.6.3 when it started) but the balance is the same.
The start up log has one error that is new I believe, and may or not be related. This is also shown directly after reseeding:
I had not noticed the
SYNC
warning before. The other error about revocations was there already.This is a seed I have been using for maybe 2+ years, so has a bit of use.
The text was updated successfully, but these errors were encountered: