Skip to content

Commit

Permalink
Added timestamp patch
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Apr 4, 2019
1 parent db89485 commit c359843
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ static bool fillExtraMM(cryptonote::block& block1, const cryptonote::block& bloc
std::copy(extra_nonce_replace.begin(), extra_nonce_replace.end(), extra.begin() + pos + 1 + new_extra_nonce_size + 1);
//extra.resize(pos + 1 + extra_nonce_size + 1);

// get the most recent timestamp (solve duplicated timestamps on child coin)
if (block2.timestamp > block1.timestamp) block1.timestamp = block2.timestamp;

return true;
}

Expand Down

0 comments on commit c359843

Please sign in to comment.