Bitcoin Forum
June 21, 2024, 04:13:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Difference in getbalance and total sum of listunspent on: March 19, 2023, 07:55:15 AM
I don't see where they are not the same. All of the amounts sum to the same value. Your wallet appears to have enabled the avoid_reuse flag, so the values in UTXOs for scripts that have already been used before will be counted in the "used" balance separately from "trusted".


Is there any real potential benefits for settings avoid_reuse as False. And thanks for the explanation. I did some calculations and yeah, it matches.
2  Bitcoin / Development & Technical Discussion / Difference in getbalance and total sum of listunspent on: March 19, 2023, 12:42:01 AM

Bitcoin Core Version: bitcoin-core-24.-
Wallet version : 169900
Operating System: Ubuntu 22.04 64-bit
System Hardware Specs: N/A
Description of Problem: is there a reason why the total sum of listunspent and getbalances are not the same
Any Related Addresses: N/A
Any Related Transaction IDs: N/A
Screenshot of the problem: N/A
Log Files from the Bitcoin Client: N/A




bitcoin-cli listunspent | grep amount
    "amount": 0.00002129,
    "amount": 0.00002129,
    "amount": 0.00004280,
    "amount": 0.00002756,
    "amount": 0.00004278,
    "amount": 0.00004263,
    "amount": 0.00004263,


bitcoin-cli getbalances
{
  "mine": {
    "trusted": 0.00002756,
    "untrusted_pending": 0.00000000,
    "immature": 0.00000000,
    "used": 0.00021342
  }
}
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!