Skip to content

Commit

Permalink
Endianess fix for vote timestamp field (does not affect x86)
Browse files Browse the repository at this point in the history
This change will have no effect on little endianess machines (x86).
But it would fix big endian machines.
  • Loading branch information
dsiganos committed Oct 8, 2021
1 parent 1eefcaf commit 6bd6e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/secure/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ void nano::vote::serialize (nano::stream & stream_a, nano::block_type type) cons
{
write (stream_a, account);
write (stream_a, signature);
write (stream_a, timestamp);
write (stream_a, boost::endian::native_to_little (timestamp));
for (auto const & block : blocks)
{
if (block.which ())
Expand Down

0 comments on commit 6bd6e26

Please sign in to comment.