Skip to content

Commit c359843

Browse files
committed
Added timestamp patch
1 parent db89485 commit c359843

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ static bool fillExtraMM(cryptonote::block& block1, const cryptonote::block& bloc
9393
std::copy(extra_nonce_replace.begin(), extra_nonce_replace.end(), extra.begin() + pos + 1 + new_extra_nonce_size + 1);
9494
//extra.resize(pos + 1 + extra_nonce_size + 1);
9595

96+
// get the most recent timestamp (solve duplicated timestamps on child coin)
97+
if (block2.timestamp > block1.timestamp) block1.timestamp = block2.timestamp;
98+
9699
return true;
97100
}
98101

0 commit comments

Comments
 (0)