cryptonote_protocol_handler: fix crash in debug log

This commit is contained in:
moneromooo-monero 2017-06-01 19:42:33 +01:00
parent e3da0ca828
commit 6fc2dc3927
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -662,9 +662,6 @@ namespace cryptonote
return 1; return 1;
} }
for (auto txidx: arg.missing_tx_indices)
MDEBUG(" tx " << b.tx_hashes[txidx]);
std::vector<crypto::hash> txids; std::vector<crypto::hash> txids;
NOTIFY_NEW_FLUFFY_BLOCK::request fluffy_response; NOTIFY_NEW_FLUFFY_BLOCK::request fluffy_response;
fluffy_response.b.block = t_serializable_object_to_blob(b); fluffy_response.b.block = t_serializable_object_to_blob(b);
@ -674,6 +671,7 @@ namespace cryptonote
{ {
if(tx_idx < b.tx_hashes.size()) if(tx_idx < b.tx_hashes.size())
{ {
MDEBUG(" tx " << b.tx_hashes[tx_idx]);
txids.push_back(b.tx_hashes[tx_idx]); txids.push_back(b.tx_hashes[tx_idx]);
} }
else else