Chain::SetTip return type to void
This commit is contained in:
1 parent
84d13eef88
commit
b7ae2c172a
2 files changed
+4
-5
No files matched your search
+2
-3
@@ -9,17 +9,16 @@ using namespace std;
|
||||
|
||||
// CChain implementation
|
||||
|
||||
CBlockIndex *CChain::SetTip(CBlockIndex *pindex) {
|
||||
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 {
|
||||
|
||||
Reference in new issue
Block a user