Fix initial flags
This commit is contained in:
@@ -280,7 +280,8 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
|
||||
bnPrev.SetCompact(pindexFirst->nBits);
|
||||
for (i=0; pindexFirst != 0 && i<(int32_t)(sizeof(ct)/sizeof(*ct)); i++)
|
||||
{
|
||||
zflags[i] = (pindexFirst->nBits & 3);
|
||||
if ( height-i-1 >= (int32_t)(sizeof(ct)/sizeof(*ct)) )
|
||||
zflags[i] = (pindexFirst->nBits & 3);
|
||||
/*if ( (pindexFirst->nBits&3) != 0 )
|
||||
{
|
||||
ct[i] = UintToArith256(pindexFirst->GetBlockHash());
|
||||
|
||||
Reference in New Issue
Block a user