diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index a07054c5c..6ea87069f 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -162,6 +162,8 @@ forwardhex(pubkey,hex)\n\ LP_privkey_init(-1,ptr,privkey,pubkey,pubkey33); retjson = cJSON_CreateObject(); jaddstr(retjson,"result","success"); + jaddstr(retjson,"coin",coin); + jaddnum(retjson,"timestamp",time(NULL)); jadd(retjson,"alice",LP_inventory(coin,0)); jadd(retjson,"bob",LP_inventory(coin,1)); return(jprint(retjson,1)); diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 9a3d73225..2e3d57a89 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -136,7 +136,8 @@ int32_t LP_vinscan(bits256 *spendtxidp,int32_t *spendvinip,char *symbol,bits256 { if ( bits256_cmp(txid,jbits256(txobj,"txid")) != 0 ) { - printf("txid mismatch error\n"); + char str[65]; printf("txid mismatch error %s vs %s\n",bits256_str(str,txid),jprint(txobj,0)); + free_json(txobj); return(-2); } vins = jarray(&numvins,txobj,"vin");