mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
cryptonote_protocol: internal error consistency size check
This commit is contained in:
parent
7a9a4a6669
commit
a2c845c7e3
@ -1050,6 +1050,11 @@ skip:
|
|||||||
num_txs += block_entry.txs.size();
|
num_txs += block_entry.txs.size();
|
||||||
std::vector<tx_verification_context> tvc;
|
std::vector<tx_verification_context> tvc;
|
||||||
m_core.handle_incoming_txs(block_entry.txs, tvc, true, true, false);
|
m_core.handle_incoming_txs(block_entry.txs, tvc, true, true, false);
|
||||||
|
if (tvc.size() != block_entry.txs.size())
|
||||||
|
{
|
||||||
|
LOG_ERROR_CCONTEXT("Internal error: tvc.size() != block_entry.txs.size()");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
std::list<blobdata>::const_iterator it = block_entry.txs.begin();
|
std::list<blobdata>::const_iterator it = block_entry.txs.begin();
|
||||||
for (size_t i = 0; i < tvc.size(); ++i, ++it)
|
for (size_t i = 0; i < tvc.size(); ++i, ++it)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user