IsPOSNonce() guard

This commit is contained in:
jl777
2018-11-22 02:33:37 -11:00
parent bf204809b4
commit a93fd301ba

View File

@@ -12,6 +12,8 @@
#include "uint256.h"
#include "arith_uint256.h"
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
* requirements. When they solve the proof-of-work, they broadcast the block
@@ -109,7 +111,9 @@ public:
bool IsVerusPOSBlock() const
{
return nNonce.IsPOSNonce();
if ( ASSETCHAINS_LWMAPOS != 0 )
return nNonce.IsPOSNonce();
else return(0);
}
void SetVerusPOSTarget(uint32_t nBits)