From 4c0e78bde3048a778d7071375a91ad581f513e95 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 30 Jul 2019 04:14:22 -1100 Subject: [PATCH] Syntax --- src/komodo_defs.h | 3 ++- src/komodo_utils.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/komodo_defs.h b/src/komodo_defs.h index 10d71ea96..c6150f905 100644 --- a/src/komodo_defs.h +++ b/src/komodo_defs.h @@ -263,7 +263,8 @@ static const char *notaries_elected[NUM_KMD_SEASONS][NUM_KMD_NOTARIES][2] = //#define PRICES_DAYWINDOW (7) //#endif -extern uint8_t ASSETCHAINS_TXPOW,ASSETCHAINS_PUBLIC,ASSETCHAINS_ADAPTIVEPOW; +extern uint8_t ASSETCHAINS_TXPOW,ASSETCHAINS_PUBLIC; +extern int8_t ASSETCHAINS_ADAPTIVEPOW; int32_t MAX_BLOCK_SIZE(int32_t height); extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN]; extern uint16_t ASSETCHAINS_P2PPORT,ASSETCHAINS_RPCPORT; diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 9e470c657..0e3cbe577 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -2433,6 +2433,7 @@ fprintf(stderr,"extralen.%d before disable bits\n",extralen); } if ( ASSETCHAINS_ADAPTIVEPOW == 0 && (pindex= komodo_activechain(1)) != 0 ) { + CBlockIndex *pindex; if ( pindex->nTime > 1564499104-365*2*1440 ) { ASSETCHAINS_ADAPTIVEPOW = 1;