Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
83bf986cda
  1. 2
      iguana/iguana_unspents.c
  2. 2
      iguana/ramchain_api.c
  3. 1
      iguana/tests/listunspent

2
iguana/iguana_unspents.c

@ -1112,7 +1112,7 @@ cJSON *iguana_unspentjson(struct supernet_info *myinfo,struct iguana_info *coin,
jaddnum(item,"amount",dstr(up->value));
if ( (checkind= iguana_unspentindfind(coin,&height,T[up->txidind].txid,up->vout,coin->bundlescount-1)) != 0 )
{
jaddnum(item,"confirmations",coin->blocks.hwmchain.height - height);
jaddnum(item,"confirmations",coin->blocks.hwmchain.height - height + 1);
jaddnum(item,"checkind",checkind);
}
if ( (waddr= iguana_waddresssearch(myinfo,coin,&wacct,coinaddr)) != 0 )

2
iguana/ramchain_api.c

@ -315,7 +315,7 @@ HASH_AND_TWOINTS(bitcoinrpc,gettxout,txid,vout,mempool)
jaddbits256(retjson,"bestblock",coin->blocks.hwmchain.RO.hash2);
jaddnum(retjson,"bestheight",coin->blocks.hwmchain.height);
jaddnum(retjson,"height",height);
jaddnum(retjson,"confirmations",coin->blocks.hwmchain.height - height);
jaddnum(retjson,"confirmations",coin->blocks.hwmchain.height - height + 1);
jaddnum(retjson,"value",dstr(U[unspentind].value));
memset(rmd160,0,sizeof(rmd160));
memset(pubkey33,0,sizeof(pubkey33));

1
iguana/tests/listunspent

@ -0,0 +1 @@
curl --url "http://127.0.0.1:7778" --data "{\"method\":\"listunspent\",\"params\":[\"185oPvxk7SxxSAe121r8pmFjQEHZNREYUc\"]}"
Loading…
Cancel
Save