Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
86ac0e991c
  1. 2
      iguana/iguana_wallet.c
  2. 2
      iguana/tests/getbalance

2
iguana/iguana_wallet.c

@ -1335,7 +1335,7 @@ STRING_AND_THREEINTS(bitcoinrpc,getbalance,account,minconf,includeempty,lastheig
if ( myinfo->expiration == 0 )
return(clonestr("{\"error\":\"need to unlock wallet\"}"));
if ( account == 0 )
account = "";
account = "*";
if ( minconf == 0 )
minconf = 1;
if ( strcmp(account,"*") != 0 )

2
iguana/tests/getbalance

@ -1 +1 @@
curl --url "http://127.0.0.1:7778" --data "{\"method\":\"getbalance\",\"params\":[]}"
curl --url "http://127.0.0.1:7778" --data "{\"method\":\"getbalance\",\"params\":[\"default\"]}"

Loading…
Cancel
Save