From 43897288fd86b74e5d92215ef88a1315d6c9e1e2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 29 Sep 2016 13:29:41 -0300 Subject: [PATCH] test --- basilisk/basilisk_DEX.c | 2 +- basilisk/basilisk_tradebot.c | 1 + iguana/exchanges/poloniex.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/basilisk/basilisk_DEX.c b/basilisk/basilisk_DEX.c index 784c4ef26..6fb4493c9 100755 --- a/basilisk/basilisk_DEX.c +++ b/basilisk/basilisk_DEX.c @@ -173,7 +173,7 @@ cJSON *basilisk_requestjson(struct basilisk_request *rp) int32_t i; struct basilisk_request R; if ( basilisk_parsejson(&R,item) != 0 ) { - if ( memcmp(&R,rp,sizeof(*rp)) != 0 ) + if ( memcmp(&R,rp,sizeof(*rp)-sizeof(uint32_t)) != 0 ) { for (i=0; icHandle,dotrade,retstrp,exchange,EXCHANGE_AUTHURL,payload)) != 0 ) { txid = (get_API_nxt64bits(cJSON_GetObjectItem(json,"orderNumber")) << 32) | get_API_nxt64bits(cJSON_GetObjectItem(json,"tradeID")); + printf("poloniex.%llu (%s)\n",(long long)txid,jprint(json,0)); free_json(json); } return(txid);