mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
db_lmdb: set same packing format for output_data_t and pre_rct_output_data_t
For safety, though it seems to have been the case already. Also add a comment about the necessary layout identity.
This commit is contained in:
parent
c36cb54340
commit
3465c4ebc7
@ -51,12 +51,15 @@ using epee::string_tools::pod_to_hex;
|
|||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#pragma pack(push, 1)
|
||||||
|
// This MUST be identical to output_data_t, without the extra rct data at the end
|
||||||
struct pre_rct_output_data_t
|
struct pre_rct_output_data_t
|
||||||
{
|
{
|
||||||
crypto::public_key pubkey; //!< the output's public key (for spend verification)
|
crypto::public_key pubkey; //!< the output's public key (for spend verification)
|
||||||
uint64_t unlock_time; //!< the output's unlock time (or height)
|
uint64_t unlock_time; //!< the output's unlock time (or height)
|
||||||
uint64_t height; //!< the height of the block which created the output
|
uint64_t height; //!< the height of the block which created the output
|
||||||
};
|
};
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline void throw0(const T &e)
|
inline void throw0(const T &e)
|
||||||
|
Loading…
Reference in New Issue
Block a user