Post
Topic
Board Announcements (Altcoins)
Re: ★★★ MaruCoin ★★★ NEW X13 ALGO ! ★★★ (CPU) MINE NOW ! [KGW+DGW] ★★★ NO IPO/PM !
by
AfrikaMan
on 18/04/2014, 19:43:59 UTC
Yea, there's something wrong in these lines in main.cpp:

Code:
  if (vtx[0].GetValueOut() > GetBlockValue(pindex->pprev->nBits, pindex->pprev->nHeight, nFees))
        return state.DoS(100, error("ConnectBlock() : coinbase pays too much (actual=%"PRI64d" vs limit=%"PRI64d")", vtx[0].GetValueOut(), GetBlockValue(pindex->pprev->nBits, pindex->pprev->nHeight, nFees)));

and

Code:
int64 reward = GetBlockValue(pindexPrev->nBits,pindexPrev->nHeight+1, 0);

It's using the difficulty/height from the previous block instead of the current block.