mirror of
https://github.com/monero-project/monero.git
synced 2025-07-28 04:25:26 -04:00
Merge pull request #6243
4771a7ae
p2p: remove obsolete local time in handshake (moneromooo-monero)2fbbc4a2
p2p: avoid sending the same peer list over and over (moneromooo-monero)3004835b
epee: remove backward compatible endian specific address serialization (moneromooo-monero)39a343d7
p2p: remove backward compatible peer list (moneromooo-monero)60631802
p2p: simplify last_seen serialization now we have optional stores (moneromooo-monero)9467b2e4
cryptonote_protocol: omit top 64 bits of difficulty when 0 (moneromooo-monero)b595583f
serialization: do not write optional fields with default value (moneromooo-monero)5f98b46d
p2p: remove obsolete local time from TIMED_SYNC (moneromooo-monero)
This commit is contained in:
commit
092a57df99
8 changed files with 38 additions and 87 deletions
|
@ -257,7 +257,10 @@ namespace cryptonote
|
|||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(current_height)
|
||||
KV_SERIALIZE(cumulative_difficulty)
|
||||
KV_SERIALIZE(cumulative_difficulty_top64)
|
||||
if (is_store)
|
||||
KV_SERIALIZE(cumulative_difficulty_top64)
|
||||
else
|
||||
KV_SERIALIZE_OPT(cumulative_difficulty_top64, (uint64_t)0)
|
||||
KV_SERIALIZE_VAL_POD_AS_BLOB(top_id)
|
||||
KV_SERIALIZE_OPT(top_version, (uint8_t)0)
|
||||
KV_SERIALIZE_OPT(pruning_seed, (uint32_t)0)
|
||||
|
@ -298,7 +301,10 @@ namespace cryptonote
|
|||
KV_SERIALIZE(start_height)
|
||||
KV_SERIALIZE(total_height)
|
||||
KV_SERIALIZE(cumulative_difficulty)
|
||||
KV_SERIALIZE(cumulative_difficulty_top64)
|
||||
if (is_store)
|
||||
KV_SERIALIZE(cumulative_difficulty_top64)
|
||||
else
|
||||
KV_SERIALIZE_OPT(cumulative_difficulty_top64, (uint64_t)0)
|
||||
KV_SERIALIZE_CONTAINER_POD_AS_BLOB(m_block_ids)
|
||||
KV_SERIALIZE_CONTAINER_POD_AS_BLOB(m_block_weights)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue