diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-10-22 10:24:06 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-10-22 10:24:16 +0200 |
| commit | 93cb689e52e15b7843692cee9959eaf67cad4e2b (patch) | |
| tree | 9ffe644c363865c12e37f371ab21341982c45c15 /src/chain.cpp | |
| parent | qt: small English language updates from translators (diff) | |
| parent | Chain::SetTip return type to void (diff) | |
| download | discoin-93cb689e52e15b7843692cee9959eaf67cad4e2b.tar.xz discoin-93cb689e52e15b7843692cee9959eaf67cad4e2b.zip | |
Merge pull request #5104
b7ae2c1 Chain::SetTip return type to void (21E14)
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 05427a456..56ed22ce7 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 { |