From 02c9b5a19c65ad83dea815524016093d0950d6a9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 9 Feb 2017 22:13:36 +0200 Subject: [PATCH] test --- iguana/kmd_lookup.h | 2 +- iguana/main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/kmd_lookup.h b/iguana/kmd_lookup.h index a73783158..a8fd09eb9 100755 --- a/iguana/kmd_lookup.h +++ b/iguana/kmd_lookup.h @@ -165,7 +165,7 @@ void kmd_flushfiles(struct iguana_info *coin) FILE *kmd_txidinit(struct iguana_info *coin) { int32_t i; FILE *fp; char fname[1024]; struct kmd_transactionhh *ptr; struct kmd_transaction T,*tx; struct kmd_voutinfo V; long lastpos=0; - sprintf(fname,"%s/%s/TRANSACTIONS",GLOBAL_DBDIR,coin->symbol); + sprintf(fname,"%s/TRANSACTIONS/%s",GLOBAL_DBDIR,coin->symbol); if ( (fp= fopen(fname,"rb+")) != 0 ) { while ( fread(&T,1,sizeof(T),fp) == sizeof(T) ) diff --git a/iguana/main.c b/iguana/main.c index 77eb104c9..a679eb328 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -670,6 +670,7 @@ void iguana_ensuredirs() sprintf(dirname,"%s",GLOBAL_GENESISDIR), OS_ensure_directory(dirname); sprintf(dirname,"%s",GLOBAL_CONFSDIR), OS_ensure_directory(dirname); sprintf(dirname,"%s",GLOBAL_DBDIR), OS_ensure_directory(dirname); + sprintf(dirname,"%s/TRANSACTIONS",GLOBAL_DBDIR), OS_ensure_directory(dirname); sprintf(dirname,"%s/purgeable",GLOBAL_DBDIR), OS_ensure_directory(dirname); sprintf(dirname,"%s",GLOBAL_TMPDIR), OS_ensure_directory(dirname); sprintf(dirname,"%s",GLOBAL_VALIDATEDIR), OS_ensure_directory(dirname);