Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyneu committed Jul 1, 2018
1 parent 23a8a74 commit a9d65ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool3/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ VOID c(VOID *x)
memcpy(serializedData + serializedData_pos + timestamp.length(), &transaction.sequence, sizetwo);
uint32_t scriptSig_length = serializedData[sizeone] = pl + 4/*abc round-up*/ + timestamp.length();
SHA256(serializedData, sizeof transaction + 1 + scriptSig_length, hash1); /* + 1 coz of serializedData[sizeone]*/
blockheader block_header = {1/*version*/,{}/*hprev*/,{}/*merk*/,mount_tx->m_ut == 0 ? time(NULL) : mount_tx->m_ut ,nBits ,mount_tx->m_nonce };
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 };
SHA256(hash1, 32, block_header.merk);// hash it with SHA256 and then hash that result to get merkle hash
std::wstring merkleHash = bin2hex( block_header.merk, 32);
std::reverse(block_header.merk,block_header.merk +32);
Expand Down
Binary file modified x64/Release/tool3.exe
Binary file not shown.

0 comments on commit a9d65ea

Please sign in to comment.