Skip to content
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

confirmed value equals to unconfirmed at some point #900

Open
vlddm opened this issue Sep 25, 2019 · 3 comments
Open

confirmed value equals to unconfirmed at some point #900

vlddm opened this issue Sep 25, 2019 · 3 comments

Comments

@vlddm
Copy link

vlddm commented Sep 25, 2019

First {confirmed: 0, unconfirmed: 1000}
Then {confirmed: 1000, unconfirmed: 1000}
Next {confirmed: 1000, unconfirmed: 0}
Looks like it happens in the moment of first confirmation.
Im using 1.12.0 on Litecoin mainnet.
Not happens all the time, doing huge amount of requests on different addresses and just few of them returns doubled results.
Looks like transactions adding in UTXO list and removed from mempool in a not atomic way so can count on both confirmed and unconfirmed balances for some unlucky users.

@wedevelopio
Copy link

Bounty USD$100

@kyuupichan
Copy link
Owner

Yes it's not currently atomic; requests are served concurrently to block processing, and mempool processing is also concurrent. I'm not sure if there is an easy fix; simply pausing all requests while a block is processed is not acceptable

@dmitry537
Copy link

Any fixes? This is critical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants