ASSETCHAINS_LWMAPOS check in IsVerusPOSBlock()

This commit is contained in:
jl777
2018-11-22 02:07:16 -11:00
parent 77cad1396f
commit f28f7c8324
2 changed files with 5 additions and 2 deletions

View File

@@ -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);
}
};