Browse Source

More cleaning and updates in prep for 3.6.0

minor
Duke Leto 4 years ago
parent
commit
1a481f401c
  1. 5
      src/cc/CCMarmara.h
  2. 6
      src/cc/CCinclude.h
  3. 0
      src/cc/crypto777/OS_portable.h
  4. 3
      src/cc/rogue/Makefile.in
  5. 3
      src/cc/rogue/armor.c
  6. 3
      src/cc/rogue/chase.c
  7. 3
      src/cc/rogue/command.c
  8. 3
      src/cc/rogue/cursesd.c
  9. 3
      src/cc/rogue/cursesd.h
  10. 3
      src/cc/rogue/daemon.c
  11. 3
      src/cc/rogue/daemons.c
  12. 3
      src/cc/rogue/extern.c
  13. 3
      src/cc/rogue/extern.h
  14. 3
      src/cc/rogue/fight.c
  15. 3
      src/cc/rogue/init.c
  16. 3
      src/cc/rogue/io.c
  17. 3
      src/cc/rogue/list.c
  18. 3
      src/cc/rogue/mach_dep.c
  19. 9
      src/cc/rogue/main.c
  20. 3
      src/cc/rogue/mdport.c
  21. 3
      src/cc/rogue/misc.c
  22. 5
      src/cc/rogue/monsters.c
  23. 3
      src/cc/rogue/move.c
  24. 3
      src/cc/rogue/new_level.c
  25. 3
      src/cc/rogue/options.c
  26. 3
      src/cc/rogue/pack.c
  27. 3
      src/cc/rogue/passages.c
  28. 8
      src/cc/rogue/potions.c
  29. 3
      src/cc/rogue/rings.c
  30. 3
      src/cc/rogue/rip.c
  31. 7
      src/cc/rogue/rogue.c
  32. 3
      src/cc/rogue/rogue.h
  33. 3
      src/cc/rogue/rogue_player.h
  34. 3
      src/cc/rogue/rooms.c
  35. 3
      src/cc/rogue/save.c
  36. 3
      src/cc/rogue/score.h
  37. 3
      src/cc/rogue/scrolls.c
  38. 3
      src/cc/rogue/state.c
  39. 3
      src/cc/rogue/sticks.c
  40. 3
      src/cc/rogue/things.c
  41. 5
      src/cc/rogue/vers.c
  42. 3
      src/cc/rogue/weapons.c
  43. 3
      src/cc/rogue/wizard.c
  44. 4
      src/cc/rogue/xcrypt.c
  45. 14
      src/hush.h
  46. 2
      src/hush_cJSON.c
  47. 2
      src/hush_globals.h
  48. 2
      src/hush_notary.h

5
src/cc/CCMarmara.h

@ -20,8 +20,10 @@
#ifndef CC_MARMARA_H #ifndef CC_MARMARA_H
#define CC_MARMARA_H #define CC_MARMARA_H
/*
#include "CCinclude.h" #include "CCinclude.h"
#include "../komodo_cJSON.h" #include "../hush_cJSON.h"
#define MARMARA_GROUPSIZE 60 #define MARMARA_GROUPSIZE 60
#define MARMARA_MINLOCK (1440 * 3 * 30) #define MARMARA_MINLOCK (1440 * 3 * 30)
@ -46,5 +48,6 @@ bool MarmaraValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &t
// CCcustom // CCcustom
UniValue MarmaraInfo(); UniValue MarmaraInfo();
*/
#endif #endif

6
src/cc/CCinclude.h

@ -69,8 +69,8 @@ Details.
#include "../utlist.h" #include "../utlist.h"
#include "../uthash.h" #include "../uthash.h"
#include "merkleblock.h" #include "merkleblock.h"
#include "../komodo_nSPV_defs.h" #include "../hush_nSPV_defs.h"
#include "../komodo_cJSON.h" #include "../hush_cJSON.h"
#include "../init.h" #include "../init.h"
#include "rpc/server.h" #include "rpc/server.h"
@ -85,7 +85,7 @@ Details.
#define CCDISABLEALL memset(ASSETCHAINS_CCDISABLES,1,sizeof(ASSETCHAINS_CCDISABLES)) #define CCDISABLEALL memset(ASSETCHAINS_CCDISABLES,1,sizeof(ASSETCHAINS_CCDISABLES))
#define CCENABLE(x) ASSETCHAINS_CCDISABLES[((uint8_t)x)] = 0 #define CCENABLE(x) ASSETCHAINS_CCDISABLES[((uint8_t)x)] = 0
/* moved to komodo_cJSON.h /* moved to hush_cJSON.h
#ifndef _BITS256 #ifndef _BITS256
#define _BITS256 #define _BITS256
union _bits256 { uint8_t bytes[32]; uint16_t ushorts[16]; uint32_t uints[8]; uint64_t ulongs[4]; uint64_t txid; }; union _bits256 { uint8_t bytes[32]; uint16_t ushorts[16]; uint32_t uints[8]; uint64_t ulongs[4]; uint64_t txid; };

0
src/cc/crypto777/OS_portable.h

3
src/cc/rogue/Makefile.in

@ -1,3 +1,6 @@
# Copyright (c) 2016-2020 The Hush developers
# Distributed under the GPLv3 software license, see the accompanying
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
############################################################################### ###############################################################################
# #
# Makefile for rogue # Makefile for rogue

3
src/cc/rogue/armor.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* This file contains misc functions for dealing with armor * This file contains misc functions for dealing with armor
* @(#)armor.c 4.14 (Berkeley) 02/05/99 * @(#)armor.c 4.14 (Berkeley) 02/05/99

3
src/cc/rogue/chase.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Code for one creature to chase another * Code for one creature to chase another
* *

3
src/cc/rogue/command.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Read and execute the user commands * Read and execute the user commands
* *

3
src/cc/rogue/cursesd.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2019 The SuperNET Developers. * * Copyright © 2014-2019 The SuperNET Developers. *
* * * *

3
src/cc/rogue/cursesd.h

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2019 The SuperNET Developers. * * Copyright © 2014-2019 The SuperNET Developers. *
* * * *

3
src/cc/rogue/daemon.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Contains functions for dealing with things that happen in the * Contains functions for dealing with things that happen in the
* future. * future.

3
src/cc/rogue/daemons.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* All the daemon and fuse functions are in here * All the daemon and fuse functions are in here
* *

3
src/cc/rogue/extern.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* global variable initializaton * global variable initializaton
* *

3
src/cc/rogue/extern.h

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Defines for things used in mach_dep.c * Defines for things used in mach_dep.c
* *

3
src/cc/rogue/fight.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* All the fighting gets done here * All the fighting gets done here
* *

3
src/cc/rogue/init.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* global variable initializaton * global variable initializaton
* *

3
src/cc/rogue/io.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Various input/output functions * Various input/output functions
* *

3
src/cc/rogue/list.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Functions for dealing with linked lists of goodies * Functions for dealing with linked lists of goodies
* *

3
src/cc/rogue/mach_dep.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Various installation dependent routines * Various installation dependent routines
* *

9
src/cc/rogue/main.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2019 The SuperNET Developers. * * Copyright © 2014-2019 The SuperNET Developers. *
* * * *
@ -12,8 +15,6 @@
* Removal or modification of this copyright notice is prohibited. * * Removal or modification of this copyright notice is prohibited. *
* * * *
******************************************************************************/ ******************************************************************************/
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
@ -254,9 +255,9 @@ int32_t safecopy(char *dest,char *src,long len)
#define true 1 #define true 1
#define false 0 #define false 0
#ifdef STANDALONE #ifdef STANDALONE
#include "../komodo/src/komodo_cJSON.c" #include "../hush3/src/hush_cJSON.c"
#else #else
#include "../../komodo_cJSON.c" #include "../../hush_cJSON.c"
#endif #endif
int32_t rogue_replay(uint64_t seed,int32_t sleeptime); int32_t rogue_replay(uint64_t seed,int32_t sleeptime);

3
src/cc/rogue/mdport.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
mdport.c - Machine Dependent Code for Porting Unix/Curses games mdport.c - Machine Dependent Code for Porting Unix/Curses games

3
src/cc/rogue/misc.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* All sorts of miscellaneous routines * All sorts of miscellaneous routines
* *

5
src/cc/rogue/monsters.c

@ -1,5 +1,8 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* File with various monster functions in it * File with various monster functions in it, none as evil as KYC
* *
* @(#)monsters.c 4.46 (Berkeley) 02/05/99 * @(#)monsters.c 4.46 (Berkeley) 02/05/99
* *

3
src/cc/rogue/move.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* hero movement commands * hero movement commands
* *

3
src/cc/rogue/new_level.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* new_level: * new_level:
* Dig and draw a new level * Dig and draw a new level

3
src/cc/rogue/options.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* This file has all the code for the option command. I would rather * This file has all the code for the option command. I would rather
* this command were not necessary, but it is the only way to keep the * this command were not necessary, but it is the only way to keep the

3
src/cc/rogue/pack.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Routines to deal with the pack * Routines to deal with the pack
* *

3
src/cc/rogue/passages.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Draw the connecting passages * Draw the connecting passages
* *

8
src/cc/rogue/potions.c

@ -1,5 +1,8 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Function(s) for dealing with potions * Function(s) for dealing with potions, mmmmmmmmmm, potionzzzzzzz
* *
* @(#)potions.c 4.46 (Berkeley) 06/07/83 * @(#)potions.c 4.46 (Berkeley) 06/07/83
* *
@ -55,8 +58,7 @@ static PACT p_actions[] =
* Quaff a potion from the pack * Quaff a potion from the pack
*/ */
void void quaff(struct rogue_state *rs)
quaff(struct rogue_state *rs)
{ {
THING *obj, *tp, *mp; THING *obj, *tp, *mp;
bool discardit = FALSE; bool discardit = FALSE;

3
src/cc/rogue/rings.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Routines dealing specifically with rings * Routines dealing specifically with rings
* *

3
src/cc/rogue/rip.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* File for the fun ends * File for the fun ends
* Death or a total win * Death or a total win

7
src/cc/rogue/rogue.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Rogue: Exploring the Dungeons of Doom * Rogue: Exploring the Dungeons of Doom
* Copyright (C) 1980-1983, 1985, 1999 Michael Toy, Ken Arnold and Glenn Wichman * Copyright (C) 1980-1983, 1985, 1999 Michael Toy, Ken Arnold and Glenn Wichman
@ -16,9 +19,9 @@
#include "rogue.h" #include "rogue.h"
#ifdef STANDALONE #ifdef STANDALONE
#include "../komodo/src/komodo_cJSON.h" #include "../hush3/src/hush_cJSON.h"
#else #else
#include "../../komodo_cJSON.h" #include "../../hush_cJSON.h"
#endif #endif
/* /*

3
src/cc/rogue/rogue.h

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Rogue definitions and variable declarations * Rogue definitions and variable declarations
* *

3
src/cc/rogue/rogue_player.h

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2019 The SuperNET Developers. * * Copyright © 2014-2019 The SuperNET Developers. *
* * * *

3
src/cc/rogue/rooms.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Create the layout for the new level * Create the layout for the new level
* *

3
src/cc/rogue/save.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* save and restore routines * save and restore routines
* *

3
src/cc/rogue/score.h

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Score file structure * Score file structure
* *

3
src/cc/rogue/scrolls.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Read a scroll and let it happen * Read a scroll and let it happen
* *

3
src/cc/rogue/state.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
state.c - Portable Rogue Save State Code state.c - Portable Rogue Save State Code

3
src/cc/rogue/sticks.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Functions to implement the various sticks one might find * Functions to implement the various sticks one might find
* while wandering around the dungeon. * while wandering around the dungeon.

3
src/cc/rogue/things.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Contains functions for dealing with things like potions, scrolls, * Contains functions for dealing with things like potions, scrolls,
* and other items. * and other items.

5
src/cc/rogue/vers.c

@ -1,5 +1,8 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Version number. Whenever a new version number is desired, use sccs * Version number. Whenever a new version number is desired, use sccs(!)
* to get vers.c. encstr is declared here to force it to be loaded * to get vers.c. encstr is declared here to force it to be loaded
* before the version number, and therefore not to be written in saved * before the version number, and therefore not to be written in saved
* games. * games.

3
src/cc/rogue/weapons.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Functions for dealing with problems brought about by weapons * Functions for dealing with problems brought about by weapons
* *

3
src/cc/rogue/wizard.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* Special wizard commands (some of which are also non-wizard commands * Special wizard commands (some of which are also non-wizard commands
* under strange circumstances) * under strange circumstances)

4
src/cc/rogue/xcrypt.c

@ -1,3 +1,6 @@
// Copyright (c) 2016-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
/* /*
* FreeSec: libcrypt * FreeSec: libcrypt
* *
@ -47,6 +50,7 @@
* This file has a static version of des_setkey() so that crypt.o exports * This file has a static version of des_setkey() so that crypt.o exports
* only the crypt() interface. This is required to make binaries linked * only the crypt() interface. This is required to make binaries linked
* against crypt.o exportable or re-exportable from the USA. * against crypt.o exportable or re-exportable from the USA.
* NOTE2: Math is freedom of speech. -- Duke Leto
*/ */
#include <sys/types.h> #include <sys/types.h>

14
src/hush.h

@ -45,16 +45,16 @@ bool check_pprevnotarizedht();
#include "hush_globals.h" #include "hush_globals.h"
#include "hush_utils.h" #include "hush_utils.h"
#include "hush_curve25519.h" #include "hush_curve25519.h"
#include "komodo_cJSON.c" #include "hush_cJSON.c"
#include "hush_bitcoind.h" #include "hush_bitcoind.h"
#include "komodo_pax.h" #include "hush_pax.h"
#include "hush_notary.h" #include "hush_notary.h"
int32_t hush_parsestatefile(struct hush_state *sp,FILE *fp,char *symbol,char *dest); int32_t hush_parsestatefile(struct hush_state *sp,FILE *fp,char *symbol,char *dest);
#include "komodo_kv.h" #include "hush_kv.h"
#include "hush_gateway.h" #include "hush_gateway.h"
#include "komodo_events.h" #include "hush_events.h"
#include "komodo_ccdata.h" #include "hush_ccdata.h"
void hush_currentheight_set(int32_t height) void hush_currentheight_set(int32_t height)
{ {
@ -98,7 +98,7 @@ int32_t hush_parsestatefile(struct hush_state *sp,FILE *fp,char *symbol,char *de
else else
{ {
//printf("updated %d pubkeys at %s ht.%d\n",num,symbol,ht); //printf("updated %d pubkeys at %s ht.%d\n",num,symbol,ht);
if ( (KOMODO_EXTERNAL_NOTARIES != 0 && matched != 0) || (strcmp(symbol,"KMD") == 0 && KOMODO_EXTERNAL_NOTARIES == 0) ) if ( (HUSH_EXTERNAL_NOTARIES != 0 && matched != 0) || (strcmp(symbol,"KMD") == 0 && HUSH_EXTERNAL_NOTARIES == 0) )
komodo_eventadd_pubkeys(sp,symbol,ht,num,pubkeys); komodo_eventadd_pubkeys(sp,symbol,ht,num,pubkeys);
} }
} else printf("illegal num.%d\n",num); } else printf("illegal num.%d\n",num);
@ -243,7 +243,7 @@ int32_t hush_parsestatefiledata(struct hush_state *sp,uint8_t *filedata,long *fp
else else
{ {
//printf("updated %d pubkeys at %s ht.%d\n",num,symbol,ht); //printf("updated %d pubkeys at %s ht.%d\n",num,symbol,ht);
if ( (KOMODO_EXTERNAL_NOTARIES != 0 && matched != 0) || (strcmp(symbol,"KMD") == 0 && KOMODO_EXTERNAL_NOTARIES == 0) ) if ( (HUSH_EXTERNAL_NOTARIES != 0 && matched != 0) || (strcmp(symbol,"KMD") == 0 && HUSH_EXTERNAL_NOTARIES == 0) )
komodo_eventadd_pubkeys(sp,symbol,ht,num,pubkeys); komodo_eventadd_pubkeys(sp,symbol,ht,num,pubkeys);
} }
} else printf("illegal num.%d\n",num); } else printf("illegal num.%d\n",num);

2
src/hush_cJSON.c

@ -26,7 +26,7 @@
#include <math.h> #include <math.h>
#include "cJSON.h" #include "cJSON.h"
#include "komodo_cJSON.h" #include "hush_cJSON.h"
#include "cJSON.c" #include "cJSON.c"
#ifndef DBL_EPSILON #ifndef DBL_EPSILON

2
src/hush_globals.h

@ -47,7 +47,7 @@ int COINBASE_MATURITY = _COINBASE_MATURITY;//100;
unsigned int WITNESS_CACHE_SIZE = _COINBASE_MATURITY+10; unsigned int WITNESS_CACHE_SIZE = _COINBASE_MATURITY+10;
uint256 HUSH_EARLYTXID; uint256 HUSH_EARLYTXID;
int32_t HUSH_MININGTHREADS = -1,IS_HUSH_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAINS_SEED,KOMODO_ON_DEMAND,KOMODO_EXTERNAL_NOTARIES,HUSH_PASSPORT_INITDONE,KOMODO_PAX,HUSH_EXCHANGEWALLET,HUSH_REWIND,HUSH_CONNECTING = -1,KOMODO_DEALERNODE,HUSH_EXTRASATOSHI,ASSETCHAINS_FOUNDERS,ASSETCHAINS_CBMATURITY,HUSH_NSPV; int32_t HUSH_MININGTHREADS = -1,IS_HUSH_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAINS_SEED,KOMODO_ON_DEMAND,HUSH_EXTERNAL_NOTARIES,HUSH_PASSPORT_INITDONE,KOMODO_PAX,HUSH_EXCHANGEWALLET,HUSH_REWIND,HUSH_CONNECTING = -1,KOMODO_DEALERNODE,HUSH_EXTRASATOSHI,ASSETCHAINS_FOUNDERS,ASSETCHAINS_CBMATURITY,HUSH_NSPV;
int32_t HUSH_INSYNC,KOMODO_LASTMINED,prevKOMODO_LASTMINED,KOMODO_CCACTIVATE,JUMBLR_PAUSE = 1; int32_t HUSH_INSYNC,KOMODO_LASTMINED,prevKOMODO_LASTMINED,KOMODO_CCACTIVATE,JUMBLR_PAUSE = 1;
std::string NOTARY_PUBKEY,ASSETCHAINS_NOTARIES,ASSETCHAINS_OVERRIDE_PUBKEY,DONATION_PUBKEY,ASSETCHAINS_SCRIPTPUB,NOTARY_ADDRESS,ASSETCHAINS_SELFIMPORT,ASSETCHAINS_CCLIB; std::string NOTARY_PUBKEY,ASSETCHAINS_NOTARIES,ASSETCHAINS_OVERRIDE_PUBKEY,DONATION_PUBKEY,ASSETCHAINS_SCRIPTPUB,NOTARY_ADDRESS,ASSETCHAINS_SELFIMPORT,ASSETCHAINS_CCLIB;
uint8_t NOTARY_PUBKEY33[33],ASSETCHAINS_OVERRIDE_PUBKEY33[33],ASSETCHAINS_OVERRIDE_PUBKEYHASH[20],ASSETCHAINS_PUBLIC,ASSETCHAINS_PRIVATE,ASSETCHAINS_TXPOW,ASSETCHAINS_MARMARA; uint8_t NOTARY_PUBKEY33[33],ASSETCHAINS_OVERRIDE_PUBKEY33[33],ASSETCHAINS_OVERRIDE_PUBKEYHASH[20],ASSETCHAINS_PUBLIC,ASSETCHAINS_PRIVATE,ASSETCHAINS_TXPOW,ASSETCHAINS_MARMARA;

2
src/hush_notary.h

@ -17,7 +17,7 @@
******************************************************************************/ ******************************************************************************/
#include "hush_defs.h" #include "hush_defs.h"
#include "komodo_cJSON.h" #include "hush_cJSON.h"
#define KOMODO_MAINNET_START 178999 #define KOMODO_MAINNET_START 178999
#define KOMODO_NOTARIES_HEIGHT1 814000 #define KOMODO_NOTARIES_HEIGHT1 814000

Loading…
Cancel
Save