mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-07 22:24:34 +01:00
Remove unused SetTip(nullptr) code
This commit is contained in:
@@ -18,11 +18,9 @@ std::string CBlockIndex::ToString() const
|
||||
pprev, nHeight, hashMerkleRoot.ToString(), GetBlockHash().ToString());
|
||||
}
|
||||
|
||||
void CChain::SetTip(CBlockIndex *pindex) {
|
||||
if (pindex == nullptr) {
|
||||
vChain.clear();
|
||||
return;
|
||||
}
|
||||
void CChain::SetTip(CBlockIndex& block)
|
||||
{
|
||||
CBlockIndex* pindex = █
|
||||
vChain.resize(pindex->nHeight + 1);
|
||||
while (pindex && vChain[pindex->nHeight] != pindex) {
|
||||
vChain[pindex->nHeight] = pindex;
|
||||
|
||||
Reference in New Issue
Block a user