Bitcoin Forum
June 29, 2024, 09:05:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind - move. Ending up with a negative balance  (Read 795 times)
paraboul (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile WWW
May 28, 2013, 10:43:23 PM
 #1

Hey,

I'm facing something I don't understand.
How come it's possible using bitcoind that you can move money from one account to another (same wallet) you don't have, and ending up with a negative balance? Even specifying a minconf.

E.g.

Code:
~$ ./bitcoind move AccountA AccountB 10 6
true

So here I move 10 from AccountA to AccountB and specify a minconf of 6.
The thing is that AccountA had a balance of 0.1.

Querying the balance of AccountA now give me a negative value (again, even if I specify a minconf).

Code:
~$ ./bitcoind getbalance AccountA 6
-9.9

FWIW, I'm using the last official release of bitcoind (v0.8.1-beta).

Isn't "move" supposed to check the balance of the sender account? (what would [minconf] argument use for otherwise)

Any insight?

Thanks
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4681



View Profile
May 28, 2013, 11:56:27 PM
 #2

"Accounts" in bitcoind (or Bitcoin-Qt) tend not to work the way most people seem to expect them to.

Here is a thread with some discussion about "accounts":
https://bitcointalk.org/index.php?topic=100944.0

Hopefully, you'll find some useful information regarding your issue there.
paraboul (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile WWW
May 29, 2013, 12:58:26 AM
 #3

I've just submited a pull request to the official repo that (somehow) fix this behaviour :

https://github.com/bitcoin/bitcoin/pull/2703

But I just got GTFO'd Smiley

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!