Skip to content

Commit a9d65ea

Browse files
committed
no message
1 parent 23a8a74 commit a9d65ea

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

tool3/MainFrm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ VOID c(VOID *x)
137137
memcpy(serializedData + serializedData_pos + timestamp.length(), &transaction.sequence, sizetwo);
138138
uint32_t scriptSig_length = serializedData[sizeone] = pl + 4/*abc round-up*/ + timestamp.length();
139139
SHA256(serializedData, sizeof transaction + 1 + scriptSig_length, hash1); /* + 1 coz of serializedData[sizeone]*/
140-
blockheader block_header = {1/*version*/,{}/*hprev*/,{}/*merk*/,mount_tx->m_ut == 0 ? time(NULL) : mount_tx->m_ut ,nBits ,mount_tx->m_nonce };
140+
blockheader block_header = {1/*version*/,{}/*hprev*/,{}/*merk*/,mount_tx->m_ut == 0 ? time(NULL) + c : mount_tx->m_ut + c,nBits ,mount_tx->m_nonce };
141141
SHA256(hash1, 32, block_header.merk);// hash it with SHA256 and then hash that result to get merkle hash
142142
std::wstring merkleHash = bin2hex( block_header.merk, 32);
143143
std::reverse(block_header.merk,block_header.merk +32);

x64/Release/tool3.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)