diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-03-12 17:49:48 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-03-12 17:50:02 +0100 |
| commit | 84a7789b291ee7c72cf02f777f3011243f384d95 (patch) | |
| tree | e0bfa1f89c19d8f60232be0e0788c1f82e6c0637 /src/main.cpp | |
| parent | Merge pull request #5859 (diff) | |
| parent | add RPC test for InvalidateBlock (diff) | |
| download | discoin-84a7789b291ee7c72cf02f777f3011243f384d95.tar.xz discoin-84a7789b291ee7c72cf02f777f3011243f384d95.zip | |
Merge pull request #5879
88f6c8c add RPC test for InvalidateBlock (Alex Morcos)
a9af415 fix InvalidateBlock to repopulate setBlockIndexCandidates (Alex Morcos)
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++; } |