millisecond timestamps

This commit is contained in:
2026-05-03 13:58:06 +02:00
parent d4ec88426a
commit 318fecc029
3 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ static block_t* BuildNextBlock(blockchain_t* chain, uint32_t difficultyTarget) {
} else {
memset(block->header.prevHash, 0, sizeof(block->header.prevHash));
}
block->header.timestamp = (uint64_t)time(NULL);
block->header.timestamp = (uint64_t)get_current_time_ms();
block->header.difficultyTarget = difficultyTarget;
block->header.nonce = 0;