My application is using
bitcoinj-0.11.3. I am using Wallet.getBalance(balanceType) to read wallet balance.
AVAILABLEI get 8.94106037
This is supposed to include all confirmed transactions.
ESTIMATEDI get 22.43822671.
This mode assumes that all of the transactions in the memory pool are included into the blockchain.
Knowing my transactions this looks inaccurate as confirmed by blockr which indicates a balance of 24.48442767. Note that this doesn't include unconfirmed transactions.
So, there are two inaccuracies here:
- 22.43822671 vs 24.48442767
AVAILABLEshows ~9 when it should show ~24.
While blockr balance seems right my funds keep in pending state. I suspect that wallet balance calculation is somehow wrong.
Might also help the output of
Wallet containing 22.43822671 BTC (available: 8.94106037 BTC) in:
5 pending transactions
79 unspent transactions
390 spent transactions
0 dead transactions
I think this also answers to Nick question that I am not scrambling numbers while converting the BigInteger.