Bitcoin Forum
May 27, 2024, 03:59:50 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: sendtoaddress() returns wrong error code for message 'Insufficient funds'  (Read 2440 times)
monsterer (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1002


View Profile
September 17, 2013, 12:39:43 PM
 #1

Hi guys,

I'm getting -4 returned when trying calling sendtoaddress() on a wallet with insufficient funds accompanying the message 'Insufficient funds'. According to https://github.com/bitcoin/bitcoin/blob/master/src/bitcoinrpc.h, -4 = RPC_WALLET_ERROR, and the error should have been RPC_WALLET_INSUFFICIENT_FUNDS (-6).

Cheers, Paul.
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!