diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 7597215c3..95dec86de 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -761,9 +761,17 @@ int32_t basilisk_rawtx_gen(char *str,struct supernet_info *myinfo,int32_t iambob for (i=0; icoin->blocks.hwmchain.height,rawtx,jitem(retarray,i),lockinputs,V)) == 0 ) + { + rawtx->vins = jobj(jitem(retarray,i),"vins"); break; + } } - } else retval = basilisk_rawtx_return(myinfo,rawtx->coin->blocks.hwmchain.height,rawtx,retarray,lockinputs,V); + } + else + { + retval = basilisk_rawtx_return(myinfo,rawtx->coin->blocks.hwmchain.height,rawtx,retarray,lockinputs,V); + rawtx->vins = jobj(retarray,"vins"); + } free(retarray); } else printf("error parsing.(%s)\n",retstr); free(retstr); diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index ea189f4ac..753cec5fc 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -865,7 +865,7 @@ int32_t iguana_markedunspents_find(struct iguana_info *coin,int32_t *firstslotp, void iguana_unspents_mark(struct supernet_info *myinfo,struct iguana_info *coin,cJSON *vins) { - int32_t i,n,firstslot; int16_t vout; cJSON *item; bits256 txid; + int32_t i,n,firstslot; int16_t vout; cJSON *item; bits256 txid; char str[65]; if ( (n= cJSON_GetArraySize(vins)) > 0 ) { for (i=0; i= 0 ) { - char str[65]; printf("slot.[%d] <- %s/v%d\n",firstslot,bits256_str(str,txid),vout); + printf("slot.[%d] <- %s/v%d\n",firstslot,bits256_str(str,txid),vout); coin->markedunspents[firstslot] = txid; } - } + } else printf("error firstslot.[%d] <- %s/v%d\n",firstslot,bits256_str(str,txid),vout); } } }