ASSETCHAINS_LWMAPOS check in IsVerusPOSBlock()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user