From f28f7c83242be9d6f49b7cb0e3aac6f290a932de Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 22 Nov 2018 02:07:16 -1100 Subject: [PATCH] ASSETCHAINS_LWMAPOS check in IsVerusPOSBlock() --- src/chain.h | 5 ++++- src/main.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/chain.h b/src/chain.h index 9532fb15c..95553c23c 100644 --- a/src/chain.h +++ b/src/chain.h @@ -20,6 +20,7 @@ class CChainPower; static const int SPROUT_VALUE_VERSION = 1001400; static const int SAPLING_VALUE_VERSION = 1010100; +extern int32_t ASSETCHAINS_LWMAPOS; struct CDiskBlockPos { @@ -448,7 +449,9 @@ public: bool IsVerusPOSBlock() const { - return GetBlockHeader().IsVerusPOSBlock(); + if ( ASSETCHAINS_LWMAPOS != 0 ) + return GetBlockHeader().IsVerusPOSBlock(); + else return(0); } }; diff --git a/src/main.cpp b/src/main.cpp index 50a11328e..2af9fe3de 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3916,7 +3916,7 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock * if ( KOMODO_LONGESTCHAIN != 0 && pindexNew->GetHeight() >= KOMODO_LONGESTCHAIN ) KOMODO_INSYNC = (int32_t)pindexNew->GetHeight(); else KOMODO_INSYNC = 0; - //fprintf(stderr,"connect.%d insync.%d\n",(int32_t)pindexNew->GetHeight(),KOMODO_INSYNC); + fprintf(stderr,"connect.%d insync.%d\n",(int32_t)pindexNew->GetHeight(),KOMODO_INSYNC); if ( ASSETCHAINS_SYMBOL[0] == 0 && KOMODO_INSYNC != 0 ) komodo_broadcast(pblock,8); if ( ASSETCHAINS_SAPLING == 0 )