diff options
| author | Alex Morcos <[email protected]> | 2015-03-11 11:56:44 -0400 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2015-03-12 10:15:33 -0400 |
| commit | a9af415887f03cb2565895bc55be72748549e527 (patch) | |
| tree | 72c95055ea10a624e1977a69658d64e6bc2cadef /src/main.cpp | |
| parent | Merge pull request #5859 (diff) | |
| download | discoin-a9af415887f03cb2565895bc55be72748549e527.tar.xz discoin-a9af415887f03cb2565895bc55be72748549e527.zip | |
fix InvalidateBlock to repopulate setBlockIndexCandidates
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6bbb3bc13..9b4bb4312 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2311,7 +2311,7 @@ bool InvalidateBlock(CValidationState& state, CBlockIndex *pindex) { BlockMap::iterator it = mapBlockIndex.begin(); while (it != mapBlockIndex.end()) { if (it->second->IsValid(BLOCK_VALID_TRANSACTIONS) && it->second->nChainTx && setBlockIndexCandidates.value_comp()(chainActive.Tip(), it->second)) { - setBlockIndexCandidates.insert(pindex); + setBlockIndexCandidates.insert(it->second); } it++; } |