Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 2,159 Lines • ▼ Show 20 Lines | bool CChainState::DisconnectTip(const CChainParams ¶ms, | ||||
} | } | ||||
m_chain.SetTip(pindexDelete->pprev); | m_chain.SetTip(pindexDelete->pprev); | ||||
// Update ::ChainActive() and related variables. | // Update ::ChainActive() and related variables. | ||||
UpdateTip(params, pindexDelete->pprev); | UpdateTip(params, pindexDelete->pprev); | ||||
// Let wallets know transactions went from 1-confirmed to | // Let wallets know transactions went from 1-confirmed to | ||||
// 0-confirmed or conflicted: | // 0-confirmed or conflicted: | ||||
GetMainSignals().BlockDisconnected(pblock); | GetMainSignals().BlockDisconnected(pblock, pindexDelete); | ||||
return true; | return true; | ||||
} | } | ||||
static int64_t nTimeReadFromDisk = 0; | static int64_t nTimeReadFromDisk = 0; | ||||
static int64_t nTimeConnectTotal = 0; | static int64_t nTimeConnectTotal = 0; | ||||
static int64_t nTimeFlush = 0; | static int64_t nTimeFlush = 0; | ||||
static int64_t nTimeChainState = 0; | static int64_t nTimeChainState = 0; | ||||
static int64_t nTimePostConnect = 0; | static int64_t nTimePostConnect = 0; | ||||
▲ Show 20 Lines • Show All 3,590 Lines • Show Last 20 Lines |