-
Notifications
You must be signed in to change notification settings - Fork 202
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
Utxo's #186
Comments
It could be a setting requiring a minimal number of confirmations. |
What i mean is, if balances are spread across different addresses in a
wallet.
When you want to make a transaction, you get an unavailable unspent or
unavailable key error.
You have to then use transactions update methods which works sometimes.
Then the wallet outputs different balance each time you check with
balance_from_serviceprovider method , you have to check all addresses with
a different balance checker to really know the total wallet balance.
But what's really going on there and what's the best solution.
Why are different balances being given, and why can't you make a
transaction despite having balance across different addresses in the wallet.
Thanks for your time.
…On Mon, Sep 6, 2021, 8:08 AM Lennart Jongeneel ***@***.***> wrote:
It could be a setting requiring a minimal number of confirmations.
Also you could check the logs if you see an error or warning.
If that doesn't solve the problem please post the code which results in
this problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#186 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AORKAAID2MVE7JAUIAOKZZTUARSGXANCNFSM5DPEPCNA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sounds like one of the service providers is returning wrong results, I will run some checks to see if I can reproduce anything. If you have this issue again, please check the logs which providers are used and returns incorrect results. Are you using the lastest version 0.6 of the library? Some provider issues are fixed in the latest version. |
I updated to the latest version nw, and tried it but same error.
I tried using the transactions_update method.
I called the wallet asJSon() and the info() methods.
The balance were the same, but am still getting No unspent transaction
outputs found or no key available for UTXO's in the logs.
…On Wed, Sep 29, 2021, 9:06 PM Lennart Jongeneel ***@***.***> wrote:
Sounds like one of the service providers is returning wrong results, I
will run some checks to see if I can reproduce anything.
If you have this issue again, please check the logs which providers are
used and returns incorrect results.
Are you using the lastest version 0.6 of the library? Some provider issues
are fixed in the latest version.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#186 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AORKAANNRCCU6TP4K3Q4VNLUENWUPANCNFSM5DPEPCNA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi, thanks for the amazing project! I can report something similar, when I used
but this worked
First i'm updating keys based on another table of keys that my application is interested in
HOWEVER.. when I run this again.. about 10 minutes later, I see the error again, so there's some state-issue where the
|
Ahhhh, looks like the key has double the balance somehow! https://www.blockchain.com/btc-testnet/address/mowLeYZWK8S9CMcCWibPd2QqeWt6bDgcuT "0.00026409 BTC" total received But I see
I tried
also returns double So I |
Attached is my wallet.db file :) shouldnt be anything in this one, and all balances should be returned to my testnet client |
It seems the wallet was not able to send a correct transaction, or the transaction was not accepted by the network so it remains unconfirmed in the wallet. It's hard for me to see how this transaction was created and how to avoid it. You can delete the transaction, which solves the problem:
Please let me know if run into this issue again, and maybe you can reconstruct how the 'faulty' transaction was created. |
@mccwdev thanks for the reply! I hit the issue again, it looks like this is the pattern
So it's first letting me spend based on a balance that is not Any ideas for more debug? I'll see if I can really narrow it down further with a script |
Hmm i dont know exactly, but it seems the balance_update functions are always saying bitcoinlib/bitcoinlib/wallets.py Line 2864 in 0de3b77
bitcoinlib/bitcoinlib/wallets.py Line 3107 in 0de3b77
even balance() hmm bitcoinlib/bitcoinlib/wallets.py Line 2587 in 0de3b77
|
I just tried again by sending a transaction, then waiting until there was 2~ confirmations before using |
One clue..
|
Ok, here I can reproduce atleast the first part of the bug, in this simple program/script interestingly, i
Here I see 50,000 satoshi's (correct for what I sent), the transaction is in 'unconfirmed' state according to Electrum,
I wait until Electrum reports 1 confirmation, then re-run the script, everything works fine, amount was correctly sent, balance set back to zero I'm unable to reproduce the 'double amount' issue, just yet |
@mccwdev Ok , I think I finally found the issue .
|
Manually entering total amount frequently runs into |
I think I am experiencing the same issue. After creating a transaction with that still isn't confirmed. I am attempting to create another transaction and I get an error. First transaction
Second Transaction
|
bitcoinlib.wallets.WalletError: Not enough unspent transaction outputs found occurs
|
so how fix that? |
despite having unspent funds, confirmed from service providers
i still get error saying i don't have enough unspent output for transaction.
What could i be doing wrongly.
The text was updated successfully, but these errors were encountered: