|
|
@ -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<sizeof(R); i++) |
|
|
|
printf("%02x",((uint8_t *)&R)[i]); |
|
|
|
printf(" <- crc.%u\n",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))); |
|
|
|
} |
|
|
|
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))); |
|
|
|
} |
|
|
|
|
|
|
|