|
@ -511,7 +511,7 @@ cJSON *LP_inventory(char *symbol,int32_t iambob) |
|
|
char str[65]; printf("iambob.%d iterate %s\n",iambob,bits256_str(str,utxo->payment.txid)); |
|
|
char str[65]; printf("iambob.%d iterate %s\n",iambob,bits256_str(str,utxo->payment.txid)); |
|
|
if ( LP_isunspent(utxo) != 0 && strcmp(symbol,utxo->coin) == 0 && utxo->iambob == iambob && LP_ismine(utxo) > 0 ) |
|
|
if ( LP_isunspent(utxo) != 0 && strcmp(symbol,utxo->coin) == 0 && utxo->iambob == iambob && LP_ismine(utxo) > 0 ) |
|
|
jaddi(array,LP_inventoryjson(cJSON_CreateObject(),utxo)); |
|
|
jaddi(array,LP_inventoryjson(cJSON_CreateObject(),utxo)); |
|
|
else printf("skip %s %d %d %d %d\n",bits256_str(str,utxo->payment.txid),LP_isunspent(utxo) != 0,strcmp(symbol,utxo->coin) == 0,utxo->iambob == iambob,LP_ismine(utxo) > 0); |
|
|
else printf("skip %s %d %d %d %d\n",bits256_str(str,utxo->pubkey),LP_isunspent(utxo) != 0,strcmp(symbol,utxo->coin) == 0,utxo->iambob == iambob,LP_ismine(utxo) > 0); |
|
|
} |
|
|
} |
|
|
return(array); |
|
|
return(array); |
|
|
} |
|
|
} |
|
|