aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/p2p_protocol_defs.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-12-04 21:20:55 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-01-26 18:37:32 +0000
commit606318026e0a21fa77a2dac33510c01ff14f5522 (patch)
tree3f98a2715486c1f23dfead01dc6e0790f9dca33c /src/p2p/p2p_protocol_defs.h
parentcryptonote_protocol: omit top 64 bits of difficulty when 0 (diff)
downloadmonero-606318026e0a21fa77a2dac33510c01ff14f5522.tar.xz
p2p: simplify last_seen serialization now we have optional stores
Diffstat (limited to '')
-rw-r--r--src/p2p/p2p_protocol_defs.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/p2p/p2p_protocol_defs.h b/src/p2p/p2p_protocol_defs.h
index 178382547..4acf05ef8 100644
--- a/src/p2p/p2p_protocol_defs.h
+++ b/src/p2p/p2p_protocol_defs.h
@@ -82,8 +82,7 @@ namespace nodetool
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(adr)
KV_SERIALIZE(id)
- if (!is_store || this_ref.last_seen != 0)
- KV_SERIALIZE_OPT(last_seen, (int64_t)0)
+ KV_SERIALIZE_OPT(last_seen, (int64_t)0)
KV_SERIALIZE_OPT(pruning_seed, (uint32_t)0)
KV_SERIALIZE_OPT(rpc_port, (uint16_t)0)
KV_SERIALIZE_OPT(rpc_credits_per_hash, (uint32_t)0)