diff options
Diffstat (limited to 'src/chain.cpp')
| -rw-r--r-- | src/chain.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chain.cpp b/src/chain.cpp index 05427a456..e13c04786 100644 --- a/src/chain.cpp +++ b/src/chain.cpp @@ -7,19 +7,19 @@ using namespace std; -// CChain implementation - -CBlockIndex *CChain::SetTip(CBlockIndex *pindex) { +/** + * CChain implementation + */ +void CChain::SetTip(CBlockIndex *pindex) { if (pindex == NULL) { vChain.clear(); - return NULL; + return; } vChain.resize(pindex->nHeight + 1); while (pindex && vChain[pindex->nHeight] != pindex) { vChain[pindex->nHeight] = pindex; pindex = pindex->pprev; } - return pindex; } CBlockLocator CChain::GetLocator(const CBlockIndex *pindex) const { |