Skip to content

Commit

Permalink
Reversed byte order of Bits
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushj05 committed Apr 7, 2024
1 parent f107e0a commit 71d3503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/block.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ string genBlockHeader (vector<string> &txns_included) {
time_t timestamp = time(nullptr);
block_header += int2bin(timestamp);

block_header += string{(int8_t) 31, (int8_t) 0, (int8_t) 255, (int8_t) 255}; // Bits
block_header += string{(int8_t) 255, (int8_t) 255, (int8_t) 0, (int8_t) 31}; // Bits
// block_header += string{(int8_t) 31, (int8_t) 0, (int8_t) 255, (int8_t) 255}; // Bits

return block_header;
}
Expand Down

0 comments on commit 71d3503

Please sign in to comment.