Serialization of time classes in fc is architecture-dependent #1196
Labels
2f Testing
Status indicating the solution is being evaluated against the test case(s)
3d Bug
Classification indicating the existing implementation does not match the intention of the design
4a Low Priority
Priority indicating minimal impact to system/user -OR- an inexpensive workaround exists
6 P2P
Impact flag identifying the peer-to-peer (P2P) layer
9a Tiny
Effort estimation indicating TBD
Milestone
Bug Description
The (binary) serialization of fc::time_point, fc::time_point_sec and fc::microseconds is architecture-dependent (big-endian vs. little-endian).
Impacts
Describe which portion(s) of BitShares Core may be impacted by this bug. Please tick at least one box.
Within our x86-dominated ecosystem the bug has no effects. However, it will be impossible to sync a node on a big-endian machine.
Steps To Reproduce
n/a
Expected Behavior
Serialization should be architecture-independent.
Host Environment
all
Additional context
https://github.com/bitshares/bitshares-fc/blob/master/include/fc/io/raw.hpp#L93-L132
CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: