This commit is contained in:
jl777
2016-11-10 09:00:18 -03:00
parent 0d2cefb06c
commit 0dadbebec8
3 changed files with 4 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ bool CheckEquihashSolution(const CBlockHeader *pblock, const CChainParams& param
}
int32_t komodo_chosennotary(int32_t *notaryidp,int32_t height,uint8_t *pubkey33);
extern int32_t KOMODO_CHOSEN_ONE;
extern int32_t KOMODO_CHOSEN_ONE,CURRENT_HEIGHT;
bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned int nBits, const Consensus::Params& params)
{
@@ -114,7 +114,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
bnTarget.SetCompact(nBits, &fNegative, &fOverflow);
if ( height == 0 )
height = chainActive.Tip()->nHeight + 1;
height = CURRENT_HEIGHT + 1;
if ( height > 34000 ) // 0 -> non-special notary
{
special = komodo_chosennotary(&notaryid,height,pubkey33);