From 7509b3d1eab2d35a59487dccfd1aacd2fc4e3642 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 1 Jul 2016 10:46:36 -0300 Subject: [PATCH] test --- basilisk/basilisk_DEX.c | 3 ++- iguana/tests/accept | 2 +- iguana/tests/automatched | 2 +- iguana/tests/incoming | 2 +- iguana/tests/swapstatus | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/basilisk/basilisk_DEX.c b/basilisk/basilisk_DEX.c index 6c7f88a76..9c630dc04 100755 --- a/basilisk/basilisk_DEX.c +++ b/basilisk/basilisk_DEX.c @@ -23,13 +23,14 @@ uint32_t basilisk_requestid(struct basilisk_request *rp) R = *rp; R.requestid = R.quoteid = 0; memset(&R.volatile_start,0,(long)&R.volatile_start - (long)&R); + if ( 0 ) { int32_t i; for (i=0; i %s %.8f %s (%s) crc.%u\n",R.timestamp,R.requestid,R.quoteid,R.src,dstr(R.srcamount),bits256_str(str,R.hash),R.dest,dstr(R.destamount),bits256_str(str2,R.desthash),R.message,calc_crc32(0,(void *)&R,sizeof(R))); } - char str[65],str2[65]; printf("B REQUESTID: t.%u r.%u q.%u %s %.8f %s -> %s %.8f %s (%s) crc.%u\n",R.timestamp,R.requestid,R.quoteid,R.src,dstr(R.srcamount),bits256_str(str,R.hash),R.dest,dstr(R.destamount),bits256_str(str2,R.desthash),R.message,calc_crc32(0,(void *)&R,sizeof(R))); return(calc_crc32(0,(void *)&R,sizeof(R))); } diff --git a/iguana/tests/accept b/iguana/tests/accept index 5ba4a1a9b..bdf736e9a 100755 --- a/iguana/tests/accept +++ b/iguana/tests/accept @@ -1 +1 @@ -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"accept\",\"requestid\":812486243,\"quoteid\":123456}" +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"accept\",\"requestid\":1728286611,\"quoteid\":123456}" diff --git a/iguana/tests/automatched b/iguana/tests/automatched index 7163158e6..4475dce0b 100755 --- a/iguana/tests/automatched +++ b/iguana/tests/automatched @@ -1 +1 @@ -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"automatched\",\"requestid\":812486243}" +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"automatched\",\"requestid\":1728286611}" diff --git a/iguana/tests/incoming b/iguana/tests/incoming index c657593f3..baceca9a8 100755 --- a/iguana/tests/incoming +++ b/iguana/tests/incoming @@ -1 +1 @@ -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"incoming\",\"requestid\":812486243}" +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"incoming\",\"requestid\":1728286611}" diff --git a/iguana/tests/swapstatus b/iguana/tests/swapstatus index 8bd6a1c4f..325a1f1ac 100755 --- a/iguana/tests/swapstatus +++ b/iguana/tests/swapstatus @@ -1 +1 @@ -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"swapstatus\",\"requestid\":812486243,\"quoteid\":123456}" +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"swapstatus\",\"requestid\":1728286611,\"quoteid\":123456}"