mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
core: serialize block major/minor versions as bytes, not varints
This allows them to be saved as a fixed (one byte) chunk whatever the value. Using a varint will use two bytes as the high bit gets set. This is backward compatible with current usage (0-2 values).
This commit is contained in:
parent
4061a32082
commit
e45a8c9768
1 changed files with 2 additions and 2 deletions
|
@ -284,8 +284,8 @@ namespace cryptonote
|
||||||
uint32_t nonce;
|
uint32_t nonce;
|
||||||
|
|
||||||
BEGIN_SERIALIZE()
|
BEGIN_SERIALIZE()
|
||||||
VARINT_FIELD(major_version)
|
FIELD(major_version)
|
||||||
VARINT_FIELD(minor_version)
|
FIELD(minor_version)
|
||||||
VARINT_FIELD(timestamp)
|
VARINT_FIELD(timestamp)
|
||||||
FIELD(prev_id)
|
FIELD(prev_id)
|
||||||
FIELD(nonce)
|
FIELD(nonce)
|
||||||
|
|
Loading…
Reference in a new issue