Browse Source

Test

etomic
jl777 8 years ago
parent
commit
58037804cb
  1. 2
      .gitignore
  2. 4
      basilisk/basilisk.c

2
.gitignore

@ -368,3 +368,5 @@ iguana/DB/SWAPS/1247864366-3828803132
iguana/DB/SWAPS/2910626293-1439062588
iguana/DB/SWAPS/3893087081-2278083649
iguana/DB/SWAPS/2990527454-48620696

4
basilisk/basilisk.c

@ -1253,7 +1253,9 @@ HASH_ARRAY_STRING(basilisk,value,hash,vals,hexstr)
retjson = cJSON_CreateObject();
jaddstr(retjson,"result","success");
jaddnum(retjson,"numconfirms",jint(txoutjson,"confirmations"));
jaddnum(retjson,"height",jint(txoutjson,"height"));
if ( (height= jint(txoutjson,"height")) == 0 && coin != 0 )
height = coin->longestchain - jint(txoutjson,"confirmations");
jaddnum(retjson,"height",height);
if ( (array= jarray(&n,txoutjson,"vout")) != 0 && vout < n && (txjson= jitem(array,vout)) != 0 )
{
//printf("txjson.(%s)\n",jprint(txjson,0));

Loading…
Cancel
Save