diff options
author | warptangent <warptangent@inbox.com> | 2015-01-11 18:46:08 -0800 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-01-11 21:23:02 -0800 |
commit | 63051bea1c5f37b922a50af444e039d5ea33c09d (patch) | |
tree | 7dbf6c645d117041c571e80f3d713fedd12ff680 /src/CMakeLists.txt | |
parent | Remove a have_block() check so alternate block can be processed (diff) | |
download | monero-63051bea1c5f37b922a50af444e039d5ea33c09d.tar.xz |
Fix comparison between main and alternate chain's cumulative
difficulty.
This fixes the continual reorganization between a main and alternate
chain, using the same two latest blocks from each.
The check that cumulative difficulty of the alternate chain is bigger
than main's was not using main's last block, but incorrectly using the
passed-in block's previous block. main_chain_cumulative_difficulty was
being used in two different ways. This has been split up to keep use
of main_chain_cumulative_difficulty consistent.
Diffstat (limited to 'src/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions