As block index entries have a flag for marking invalid blocks, the 'best invalid work' information can be derived from there. In addition, remove the global from main.h.
Depends on #3077.
Added a commit that makes some validation globals static (and private).
ACK
I think "we" should get Matt's blockchain tester tool working with the pull-tester again before merging this.
@gavinandresen What is broken?
As block index entries have a flag for marking invalid blocks, the
'best invalid work' information can be derived from there. In addition,
remove the global from main.h
This means they are declared static, and their extern definition in
main.h is removed. Also moved CBlockIndexWorkComparator to the .cpp
file.
Rebased to trigger PullTester rerun.
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/caca6aa4eb54b71b5e4e9ccfa69341f985b178d9 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
Any objections?
ACK. (Now that it has a comparison tool pass!)