Browse Source

Test

etomic
jl777 8 years ago
parent
commit
a9f4279847
  1. 6
      crypto777/OS_time.c
  2. 7
      iguana/exchanges/LP_rpc.c

6
crypto777/OS_time.c

@ -578,8 +578,8 @@ int32_t OS_conv_unixtime(struct tai *tp,int32_t *secondsp,time_t timestamp) // g
int32_t conv_date(int32_t *secondsp,char *date)
{
char origdate[64],tmpdate[64]; int32_t year,month,day,hour,min,sec,len;
strcpy(origdate,date), strcpy(tmpdate,date), tmpdate[8 + 2] = 0;
char origdate[512],tmpdate[512]; int32_t year,month,day,hour,min,sec,len;
safecopy(origdate,date,sizeof(origdate)), safecopy(tmpdate,date,sizeof(tmpdate)), tmpdate[8 + 2] = 0;
year = atoi(tmpdate), month = atoi(tmpdate+5), day = atoi(tmpdate+8);
*secondsp = 0;
if ( (len= (int32_t)strlen(date)) <= 10 )
@ -596,7 +596,7 @@ int32_t conv_date(int32_t *secondsp,char *date)
sprintf(origdate,"%d-%02d-%02d",year,month,day); //2015-07-25T22:34:31Z
if ( strcmp(tmpdate,origdate) != 0 )
{
printf("conv_date date conversion error (%s) -> (%s)\n",origdate,date);
printf("conv_date date conversion error (%s) -> (%s) %d\n",origdate,date,year/min);
return(-1);
}
return((year * 10000) + (month * 100) + day);

7
iguana/exchanges/LP_rpc.c

@ -73,13 +73,6 @@ char *issue_LP_clientgetutxos(char *destip,uint16_t destport,char *coin,int32_t
//return(retstr);
}
conv_date date conversion error (0-06-17) -> ()
conv_date date conversion error (0-06-20) -> ()
conv_date date conversion error (0-06-18) -> ()
conv_date date conversion error (0-06-21) -> ()
conv_date date conversion error (0-06-19) -> ()
conv_date date conversion error (0-06-22) -> ()
change to nanomsg write only, enforce fee, comms api
char *issue_LP_notify(char *destip,uint16_t destport,char *ipaddr,uint16_t port,double profitmargin,int32_t numpeers,int32_t numutxos)
{

Loading…
Cancel
Save