diff --git a/src/main.cc b/src/main.cc index 662d5c93..e96b8b96 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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; }