aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-11-27 20:54:01 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-11-27 20:54:01 +0000
commite45a8c9768d942868fbe7f62ea5f521947e9f671 (patch)
tree1ad6cbf3725936d34a7ac0fa59efd946bcca779e /src
parentMerge pull request #501 (diff)
downloadmonero-e45a8c9768d942868fbe7f62ea5f521947e9f671.tar.xz
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).
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/cryptonote_basic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_basic.h b/src/cryptonote_core/cryptonote_basic.h
index 94887b5a0..aa8ba4f39 100644
--- a/src/cryptonote_core/cryptonote_basic.h
+++ b/src/cryptonote_core/cryptonote_basic.h
@@ -284,8 +284,8 @@ namespace cryptonote
uint32_t nonce;
BEGIN_SERIALIZE()
- VARINT_FIELD(major_version)
- VARINT_FIELD(minor_version)
+ FIELD(major_version)
+ FIELD(minor_version)
VARINT_FIELD(timestamp)
FIELD(prev_id)
FIELD(nonce)