Hey,
Looks like the "getreceivedbyaccount" rpc display is broken on 0.3.18.
# ~/bin/bitcoind getnewaddress
1Fs5rqB2sXZ3kax1r3HfuYpK2ksSxLYJT8
* Does a 0.01 BTC spend from another computer to 1Fs5rqB2sXZ3kax1r3HfuYpK2ksSxLYJT8 *
(BBE:
http://blockexplorer.com/a/7BMcTdZkY3)
# ~/bin/bitcoind getreceivedbyaccount 1Fs5rqB2sXZ3kax1r3HfuYpK2ksSxLYJT8 0
0.00000000
* Trying some PHP code to talk to the JSON-RPC directly *
# cat test.php
<?
require "config.inc.php";
require "functions.inc.php";
$bitcoin=bitcoin_api_call("getamountreceived",array("1Fs5rqB2sXZ3kax1r3HfuYpK2ksSxLYJT8",0)); //0 confirmations. I've also tried 1+
print_r($bitcoin);
?>
# php test.php
stdClass Object
(
[result] => 0.01
[error] =>
[id] => 1
)
So I see the 0.01 BTC on my php client, but not on the command line. Yes, "getinfo" and other commands work. Yes, I have proper "allowrpc" command line options. Yes, I've tried waiting for confirmations. I get the exact same result.
Seems to be a problem with the display when you use the bitcoind as a client?? Can anyone confirm that they have the same problem?
OS: FreeBSD 7.2-RELEASE-p8/amd64
Thanks.