aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_defs.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-11 19:38:18 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-12 12:33:45 +0000
commit9faef1f83abe4f1eafad9a605511cb2624201cdd (patch)
tree2fcfd7d654cdaefbb1f3af797803d1733beb9afb /src/cryptonote_protocol/cryptonote_protocol_defs.h
parentMerge pull request #1698 (diff)
downloadmonero-9faef1f83abe4f1eafad9a605511cb2624201cdd.tar.xz
cryptonote_protocol: misc fluffy block fixes
- fix wrong block being used when a new block is received between a node elaying a fluffy block and sending a new fluffy block with txes a peer did not have - misc a neverending ping pong requesting the same missing txids when a new block is received in the meantime, causing the top block to not be the one we need - send the original fluffy block message block height when sending a new fluffy block, not the current top height, which might have been updated since - avoid sending back the whole block blob when asking for txes, send only the hash instead - plus misc cleanup and additional debugging logs
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_defs.h')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_defs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_defs.h b/src/cryptonote_protocol/cryptonote_protocol_defs.h
index 843504621..427aa62df 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_defs.h
+++ b/src/cryptonote_protocol/cryptonote_protocol_defs.h
@@ -257,16 +257,16 @@ namespace cryptonote
struct request
{
- block_complete_entry b;
+ crypto::hash block_hash;
uint64_t current_blockchain_height;
std::vector<size_t> missing_tx_indices;
uint32_t hop;
BEGIN_KV_SERIALIZE_MAP()
- KV_SERIALIZE(b)
- KV_SERIALIZE_CONTAINER_POD_AS_BLOB(missing_tx_indices)
- KV_SERIALIZE(hop)
- KV_SERIALIZE(current_blockchain_height)
+ KV_SERIALIZE_VAL_POD_AS_BLOB(block_hash)
+ KV_SERIALIZE(current_blockchain_height)
+ KV_SERIALIZE_CONTAINER_POD_AS_BLOB(missing_tx_indices)
+ KV_SERIALIZE(hop)
END_KV_SERIALIZE_MAP()
};
};