aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-06-18 16:40:52 +0200
committerRiccardo Spagni <ric@spagni.net>2017-06-18 16:40:52 +0200
commita0174ad534e993a3ec017451a29fc7322f4c3d97 (patch)
tree087d8286534de04feea8a6bc93a3d80460a17ff9
parent421a6d0340527fe23c1b10cfd20769555afffb1b (diff)
parent6fc2dc3927b2d561566202b6b9ecc5e889960c72 (diff)
downloadmonzero-core-a0174ad534e993a3ec017451a29fc7322f4c3d97.tar.gz
monzero-core-a0174ad534e993a3ec017451a29fc7322f4c3d97.tar.xz
monzero-core-a0174ad534e993a3ec017451a29fc7322f4c3d97.zip
Merge pull request #2064
6fc2dc39 cryptonote_protocol_handler: fix crash in debug log (moneromooo-monero)
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index 465932e18..0b99aa7bd 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -647,9 +647,6 @@ namespace cryptonote
return 1;
}
- for (auto txidx: arg.missing_tx_indices)
- MDEBUG(" tx " << b.tx_hashes[txidx]);
-
std::vector<crypto::hash> txids;
NOTIFY_NEW_FLUFFY_BLOCK::request fluffy_response;
fluffy_response.b.block = t_serializable_object_to_blob(b);
@@ -659,6 +656,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