• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

getbalance account cmd deprecated ?

naruby

Member
noticed that the help of getbalance say:

Code:
getbalance ( "account" minconf includeWatchonly )

If account is not specified, returns the server's total available balance.
If account is specified (DEPRECATED), returns the balance in the account.

I'm very worried about the deprecated statement as my Slack Tipbot of build on accounts in a wallet and getting their balance is of course a key part of know how much a user can tip an other.

Can a core dev place up me at ease ?
 
DEPRECATED means it can go away one day. Still _should_ work as of current version though.

Also, as I mentioned many times already, using accounts is not a good idea since there is nothing preventing balance of one account to go below zero by "borrowing" coins from another account. Plus "moving" funds across accounts is internal-only operation, it's not listed on blockchain in any way thus accounting could be messed up pretty easily.
 
Back
Top