/****************************************************************************** * Copyright © 2014-2016 The SuperNET Developers. * * * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * the top-level directory of this distribution for the individual copyright * * holder information and the developer policies on copyright and licensing. * * * * Unless otherwise agreed in a custom licensing agreement, no part of the * * SuperNET software, including this file may be copied, modified, propagated * * or distributed except according to the terms contained in the LICENSE file * * * * Removal or modification of this copyright notice is prohibited. * * * ******************************************************************************/ #ifndef H_IGUANAGLOBALS_H #define H_IGUANAGLOBALS_H #ifdef ACTIVELY_DECLARE #define CONDEXTERN int32_t PANGEA_MAXTHREADS = 1,MAX_DEPTH = 100; char *Iguana_validcommands[] = { "inv2", "getdata2", "ConnectTo", "version", "verack", "getaddr", "addr", "inv", "getdata", "notfound", "getblocks", "getheaders", "headers", "tx", "block", "mempool", "ping", "pong", "reject", "filterload", "filteradd", "filterclear", "merkleblock", "alert", "" }; #ifdef __PNACL__ char GLOBAL_TMPDIR[512] = "/DB/tmp"; char GLOBAL_DBDIR[512] = "/DB"; char GLOBAL_GENESISDIR[512] = "/genesis"; char GLOBAL_HELPDIR[512] = "/DB/help"; char GLOBAL_VALIDATEDIR[512] = "/DB/purgeable"; char GLOBAL_CONFSDIR[512] = "/DB/confs"; int32_t IGUANA_NUMHELPERS = 1; #else char GLOBAL_TMPDIR[512] = "tmp"; char GLOBAL_HELPDIR[512] = "help"; char GLOBAL_DBDIR[512] = "DB"; char GLOBAL_GENESISDIR[512] = "genesis"; char GLOBAL_VALIDATEDIR[512] = "DB/purgeable"; char GLOBAL_CONFSDIR[512] = "confs"; #ifdef __linux int32_t IGUANA_NUMHELPERS = 8; #else int32_t IGUANA_NUMHELPERS = 4; #endif #endif #else #define CONDEXTERN extern #endif // ALL globals must be here! CONDEXTERN char *Iguana_validcommands[]; CONDEXTERN int32_t Showmode,Autofold,PANGEA_MAXTHREADS; CONDEXTERN struct gecko_chain *Categories; CONDEXTERN struct iguana_info *Allcoins; CONDEXTERN char Userhome[512]; CONDEXTERN int32_t USE_JAY,FIRST_EXTERNAL,IGUANA_disableNXT,Debuglevel,IGUANA_BIGENDIAN; CONDEXTERN uint32_t prices777_NXTBLOCK; CONDEXTERN queue_t helperQ,jsonQ,finishedQ,bundlesQ,emitQ; CONDEXTERN struct supernet_info MYINFO,**MYINFOS; CONDEXTERN int32_t MAIN_initflag,MAX_DEPTH; CONDEXTERN int32_t HDRnet,netBLOCKS; CONDEXTERN cJSON *API_json; CONDEXTERN char GLOBAL_TMPDIR[512]; CONDEXTERN char GLOBAL_DBDIR[512]; CONDEXTERN char GLOBAL_GENESISDIR[512]; CONDEXTERN char GLOBAL_HELPDIR[512]; CONDEXTERN char GLOBAL_VALIDATEDIR[512]; CONDEXTERN char GLOBAL_CONFSDIR[512]; CONDEXTERN int32_t IGUANA_NUMHELPERS; #endif