Bitcoin Forum
May 26, 2024, 09:50:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: detect insufficient funds while creating a tx  (Read 1213 times)
jonas.schnelli (OP)
Member
**
Offline Offline

Activity: 66
Merit: 10

bitcoin core contributor


View Profile WWW
October 14, 2013, 02:11:23 PM
 #1

When completing a TX with wallet.completeTx:
how do i detect the type of the error?
I'd like to distinct between dust, etc. errors and insufficient funds error.

Any chance to do this?
Andreas Schildbach
Hero Member
*****
Offline Offline

Activity: 483
Merit: 501


View Profile
October 14, 2013, 09:18:16 PM
 #2

Currently there is no proper way, except for manually checking the balance.

See issue http://code.google.com/p/bitcoinj/issues/detail?id=425.
Mike Hearn
Moderator
Legendary
*
Offline Offline

Activity: 1526
Merit: 1129


View Profile
October 15, 2013, 10:11:22 AM
 #3

Yes, that needs to be fixed.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!