Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 3,040 Lines • ▼ Show 20 Lines | do { | ||||
// Wipe cache, we may need another branch now. | // Wipe cache, we may need another branch now. | ||||
pindexMostWork = nullptr; | pindexMostWork = nullptr; | ||||
} | } | ||||
pindexNewTip = m_chain.Tip(); | pindexNewTip = m_chain.Tip(); | ||||
for (const PerBlockConnectTrace &trace : | for (const PerBlockConnectTrace &trace : | ||||
connectTrace.GetBlocksConnected()) { | connectTrace.GetBlocksConnected()) { | ||||
assert(trace.pblock && trace.pindex); | assert(trace.pblock && trace.pindex); | ||||
GetMainSignals().BlockConnected(trace.pblock, trace.pindex, | GetMainSignals().BlockConnected(trace.pblock, trace.pindex); | ||||
trace.conflictedTxs); | |||||
} | } | ||||
} while (!m_chain.Tip() || | } while (!m_chain.Tip() || | ||||
(starting_tip && CBlockIndexWorkComparator()( | (starting_tip && CBlockIndexWorkComparator()( | ||||
m_chain.Tip(), starting_tip))); | m_chain.Tip(), starting_tip))); | ||||
// Check the index once we're done with the above loop, since | // Check the index once we're done with the above loop, since | ||||
// we're going to release cs_main soon. If the index is in a bad | // we're going to release cs_main soon. If the index is in a bad | ||||
// state now, then it's better to know immediately rather than | // state now, then it's better to know immediately rather than | ||||
▲ Show 20 Lines • Show All 2,981 Lines • Show Last 20 Lines |