Author

Topic: bitcoind move() question (Read 423 times)

newbie
Activity: 8
Merit: 0
February 27, 2013, 04:22:30 PM
#1
I'm trying to work with accounts and the bitcoind daemon to allow moving balances between the accounts.

Originally when moving the coins around between accounts, an extra .01 appeared, as you can see from the following code.  I'm not sure how this happened but it messes up the overall balance.

Code:
$ bitcoind getbalance testuser
0.02040000
$ bitcoind getbalance bit-coin
0.00000000
$ bitcoind getbalance
0.01040000

Another issue is that when you move coins between accounts, it doesn't check the balance.  Is this an issue in the actual daemon code?  I know this isn't an issue as long as I check to make sure the balance is high enough, but if I miss something then I can't withdraw the balance showing the other account...
Code:
$ bitcoind move testuser bit-coin 3
true
$ bitcoind getbalance testuser
-2.97960000
$ bitcoind getbalance bit-coin
3.00000000
$ bitcoind getbalance
0.01040000

Are there an easy fixes to this or do I need to restart my Wallet.dat?
Jump to: