From 6fc2dc3927b2d561566202b6b9ecc5e889960c72 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 1 Jun 2017 19:42:33 +0100 Subject: cryptonote_protocol_handler: fix crash in debug log --- src/cryptonote_protocol/cryptonote_protocol_handler.inl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 8b41ce514..4a8b60d65 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -662,9 +662,6 @@ namespace cryptonote return 1; } - for (auto txidx: arg.missing_tx_indices) - MDEBUG(" tx " << b.tx_hashes[txidx]); - std::vector txids; NOTIFY_NEW_FLUFFY_BLOCK::request fluffy_response; fluffy_response.b.block = t_serializable_object_to_blob(b); @@ -674,6 +671,7 @@ namespace cryptonote { if(tx_idx < b.tx_hashes.size()) { + MDEBUG(" tx " << b.tx_hashes[tx_idx]); txids.push_back(b.tx_hashes[tx_idx]); } else -- cgit v1.2.3