mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 11:56:31 +02:00
protocol: remove unreachable code
This commit is contained in:
parent
d544fd0f52
commit
2b918068cc
@ -2310,7 +2310,7 @@ skip:
|
|||||||
const uint32_t peer_stripe = tools::get_pruning_stripe(context.m_pruning_seed);
|
const uint32_t peer_stripe = tools::get_pruning_stripe(context.m_pruning_seed);
|
||||||
const uint32_t first_stripe = tools::get_pruning_stripe(span.first, context.m_remote_blockchain_height, CRYPTONOTE_PRUNING_LOG_STRIPES);
|
const uint32_t first_stripe = tools::get_pruning_stripe(span.first, context.m_remote_blockchain_height, CRYPTONOTE_PRUNING_LOG_STRIPES);
|
||||||
const uint32_t last_stripe = tools::get_pruning_stripe(span.first + span.second - 1, context.m_remote_blockchain_height, CRYPTONOTE_PRUNING_LOG_STRIPES);
|
const uint32_t last_stripe = tools::get_pruning_stripe(span.first + span.second - 1, context.m_remote_blockchain_height, CRYPTONOTE_PRUNING_LOG_STRIPES);
|
||||||
if ((((first_stripe && peer_stripe != first_stripe) || (last_stripe && peer_stripe != last_stripe)) && !m_sync_pruned_blocks) || (m_sync_pruned_blocks && req.prune))
|
if (((first_stripe && peer_stripe != first_stripe) || (last_stripe && peer_stripe != last_stripe)) && !m_sync_pruned_blocks)
|
||||||
{
|
{
|
||||||
MDEBUG(context << "We need full data, but the peer does not have it, dropping peer");
|
MDEBUG(context << "We need full data, but the peer does not have it, dropping peer");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user