Skip to content

Commit

Permalink
Merge pull request #37 from mban259/feature/fix-timestamp
Browse files Browse the repository at this point in the history
fix timestamp for pos
  • Loading branch information
mban259 committed Dec 15, 2018
2 parents df7fa1b + 18f895e commit f5ced17
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/miner.cpp
Expand Up @@ -200,10 +200,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc

if(fPoSHeight)
{
if(pblock->GetBlockTime() <= pindexPrev->GetMedianTimePast())
{
return nullptr;
}
UpdateTime(pblock, chainparams.GetConsensus(), pindexPrev);

//create "Send to myself" Tx
CTransactionRef txCoinStake;
Expand Down

0 comments on commit f5ced17

Please sign in to comment.