This commit is contained in:
jl777
2017-02-02 16:38:29 +02:00
parent 92f97a3960
commit 3617ec150b
2 changed files with 3 additions and 3 deletions

View File

@@ -605,7 +605,7 @@ void komodo_connectpindex(CBlockIndex *pindex)
komodo_connectblock(pindex,block);
}
CBlock *komodo_chainactive(int32_t height)
CBlockIndex *komodo_chainactive(int32_t height)
{
return(chainActive[height]);
}

View File

@@ -107,7 +107,7 @@ bool CheckEquihashSolution(const CBlockHeader *pblock, const CChainParams& param
int32_t komodo_chosennotary(int32_t *notaryidp,int32_t height,uint8_t *pubkey33);
int32_t komodo_is_special(int32_t height,uint8_t pubkey33[33]);
int32_t komodo_currentheight();
CBlock *komodo_chainactive(int32_t height);
CBlockIndex *komodo_chainactive(int32_t height);
int8_t komodo_minerid(int32_t height,uint8_t *pubkey33);
extern int32_t KOMODO_CHOSEN_ONE;
#define KOMODO_ELECTION_GAP 2000
@@ -116,7 +116,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
{
extern int32_t KOMODO_REWIND;
bool fNegative,fOverflow; int32_t i,nonz=0,special=0,special2=0,notaryid=-1,flag = 0; mids[66];
arith_uint256 bnTarget; CBlock *pindex;
arith_uint256 bnTarget; CBlockIndex *pindex;
bnTarget.SetCompact(nBits, &fNegative, &fOverflow);
if ( height == 0 )