Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
51790d279f
  1. 2
      crypto777/iguana_OS.c
  2. 1
      iguana/iguana777.c

2
crypto777/iguana_OS.c

@ -520,7 +520,7 @@ int32_t OS_removefile(char *fname,int32_t scrubflag)
void OS_ensure_directory(char *dirname)
{
FILE *fp; int32_t retval; char fname[512];
if ( OS_removefile(dirname,0) < 0 )
if ( 0 && OS_removefile(dirname,0) < 0 )
{
sprintf(fname,"tmp/%d",rand());
OS_renamefile(dirname,fname);

1
iguana/iguana777.c

@ -572,6 +572,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers,
if ( (coin->MAXBUNDLES= maxbundles) <= 0 )
coin->MAXBUNDLES = (strcmp(symbol,"BTC") == 0) ? IGUANA_MAXPENDBUNDLES : IGUANA_MAXPENDBUNDLES * 3;
coin->myservices = services;
printf("ensure directories\n");
sprintf(dirname,"accounts/%s",symbol), OS_ensure_directory(dirname);
sprintf(dirname,"DB/%s",symbol), OS_ensure_directory(dirname);
sprintf(dirname,"DB/%s/accounts",symbol), OS_ensure_directory(dirname);

Loading…
Cancel
Save