From 9412ec11a96388b608f81fc07709fe8c0a18a236 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 24 Nov 2018 09:31:06 -1100 Subject: [PATCH] Add back Lwma guards for performance --- src/chain.h | 6 +++--- src/primitives/block.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/chain.h b/src/chain.h index 923f46e73..95553c23c 100644 --- a/src/chain.h +++ b/src/chain.h @@ -20,7 +20,7 @@ class CChainPower; static const int SPROUT_VALUE_VERSION = 1001400; static const int SAPLING_VALUE_VERSION = 1010100; -//extern int32_t ASSETCHAINS_LWMAPOS; +extern int32_t ASSETCHAINS_LWMAPOS; struct CDiskBlockPos { @@ -449,9 +449,9 @@ public: bool IsVerusPOSBlock() const { - //if ( ASSETCHAINS_LWMAPOS != 0 ) + if ( ASSETCHAINS_LWMAPOS != 0 ) return GetBlockHeader().IsVerusPOSBlock(); - //else return(0); + else return(0); } }; diff --git a/src/primitives/block.h b/src/primitives/block.h index 120b4b1a4..053b1c80e 100644 --- a/src/primitives/block.h +++ b/src/primitives/block.h @@ -12,7 +12,7 @@ #include "uint256.h" #include "arith_uint256.h" -//extern int32_t ASSETCHAINS_LWMAPOS; +extern int32_t ASSETCHAINS_LWMAPOS; /** Nodes collect new transactions into a block, hash them into a hash tree, * and scan through nonce values to make the block's hash satisfy proof-of-work @@ -111,9 +111,9 @@ public: bool IsVerusPOSBlock() const { - //if ( ASSETCHAINS_LWMAPOS != 0 ) + if ( ASSETCHAINS_LWMAPOS != 0 ) return nNonce.IsPOSNonce(); - //else return(0); + else return(0); } void SetVerusPOSTarget(uint32_t nBits)