From e402ebeec9ef5e8452547b33cf061e9b8cb5a164 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 19 Oct 2016 18:36:25 -0300 Subject: [PATCH] test --- src/komodo.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/komodo.h b/src/komodo.h index ae06087fe..5b7a05331 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -194,8 +194,12 @@ int32_t komodo_threshold(uint64_t signedmask) int32_t komodo_stateupdate(uint8_t notarypubs[][33],uint8_t numnotaries,int32_t notaryid,uint256 txhash,uint64_t voutmask,int32_t numvouts) { - static FILE *fp; static int32_t errs; char fname[512]; uint8_t func,num,pubkeys[64][33]; + static FILE *fp; static int32_t errs; char fname[512]; int32_t func; uint8_t num,pubkeys[64][33]; +#ifdef WIN32 + sprintf(fname,"%s\\%s",GetDataDir(false).string().c_str(),(char *)"komodostate"); +#else sprintf(fname,"%s/%s",GetDataDir(false).string().c_str(),(char *)"komodostate"); +#endif if ( fp == 0 ) { if ( (fp= fopen(fname,"rb+")) != 0 )