Browse Source

Test

etomic
jl777 8 years ago
parent
commit
0d08846495
  1. 8
      basilisk/basilisk.c

8
basilisk/basilisk.c

@ -1205,8 +1205,12 @@ HASH_ARRAY_STRING(basilisk,value,hash,vals,hexstr)
{
if ( (value= SATOSHIDEN*jdouble(txoutjson,"value")) == 0 )
value = SATOSHIDEN*jdouble(txoutjson,"amount");
if ( (coinaddr= jstr(txoutjson,"address")) == 0 && (addrs= jarray(&n,txoutjson,"addresses")) != 0 && n > 0 )
coinaddr = jstri(addrs,0);
if ( (coinaddr= jstr(txoutjson,"address")) == 0 )
{
if ( (addrs= jarray(&n,txoutjson,"addresses")) != 0 && n > 0 )
coinaddr = jstri(addrs,0);
printf("no address, check addrs.[%d] %p coinaddr.%p\n",n,addrs,coinaddr);
}
if ( coinaddr != 0 && value != 0 )
{
retjson = cJSON_CreateObject();

Loading…
Cancel
Save