Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 7,081 Lines • ▼ Show 20 Lines | if (msg_type == NetMsgType::AVARESPONSE) { | ||||
| LogPrint( | LogPrint( | ||||
| BCLog::AVALANCHE, | BCLog::AVALANCHE, | ||||
| "Error: finalized tx (%s) is not in the " | "Error: finalized tx (%s) is not in the " | ||||
| "mempool\n", | "mempool\n", | ||||
| txid.ToString()); | txid.ToString()); | ||||
| break; | break; | ||||
| } | } | ||||
| m_mempool.setAvalancheFinalized(**it); | std::vector<TxId> finalizedTxIds; | ||||
| m_mempool.setAvalancheFinalized(**it, | |||||
| finalizedTxIds); | |||||
| for (const auto &finalized_txid : finalizedTxIds) { | |||||
| m_avalanche->setRecentlyFinalized( | |||||
| finalized_txid); | |||||
| } | |||||
| // NO_THREAD_SAFETY_ANALYSIS because | // NO_THREAD_SAFETY_ANALYSIS because | ||||
| // m_recent_rejects requires cs_main in the lambda | // m_recent_rejects requires cs_main in the lambda | ||||
| m_mempool.withConflicting( | m_mempool.withConflicting( | ||||
| [&](TxConflicting &conflicting) | [&](TxConflicting &conflicting) | ||||
| NO_THREAD_SAFETY_ANALYSIS { | NO_THREAD_SAFETY_ANALYSIS { | ||||
| std::vector<CTransactionRef> | std::vector<CTransactionRef> | ||||
| conflictingTxs = | conflictingTxs = | ||||
| ▲ Show 20 Lines • Show All 2,119 Lines • Show Last 20 Lines | |||||