diff options
author | 21E14 <21xe14@gmail.com> | 2014-10-19 21:41:37 -0400 |
---|---|---|
committer | 21E14 <21xe14@gmail.com> | 2014-10-20 17:56:19 -0400 |
commit | b7ae2c172a93489fc621622e36dc4258c3934cb7 (patch) | |
tree | 9c06b0fd8056bfca97e4e5dba34e053f5e481fbd /src/chain.cpp | |
parent | 84d13eef883769451ba9f77b56d9738d24474d5c (diff) |
Chain::SetTip return type to void
Diffstat (limited to 'src/chain.cpp')
-rw-r--r-- | src/chain.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/chain.cpp b/src/chain.cpp index 05427a4569..56ed22ce71 100644 --- a/src/chain.cpp +++ b/src/chain.cpp @@ -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 { |