blockchain: some debug info when adding txes-from-block fails

This commit is contained in:
moneromooo-monero 2018-12-05 11:30:07 +00:00
parent 4308a2e173
commit 631ef00e76
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -3688,6 +3688,8 @@ leave:
//TODO: why is this done? make sure that keeping invalid blocks makes sense.
add_block_as_invalid(bl, id);
MERROR_VER("Block with id " << id << " added as invalid because of wrong inputs in transactions");
MERROR_VER("tx_index " << tx_index << ", m_blocks_txs_check " << m_blocks_txs_check.size() << ":");
for (const auto &h: m_blocks_txs_check) MERROR_VER(" " << h);
bvc.m_verifivation_failed = true;
return_tx_to_pool(txs);
goto leave;