CheckBlock takes about 2x the time of GetHash and was being calculated at least twice per block during bootstrap. Changed CheckBlock to only compute on the first call.
Tested by looking at LoadExternalBlockFile and every 500 blocks printed (total elapsed time/ nloaded) in ms
This sits on top of Pull request #25
CheckBlock takes about 2x the time of GetHash and was being calculated at least twice per block during bootstrap. Changed CheckBlock to only compute on the first call.
Tested by looking at LoadExternalBlockFile and every 500 blocks printed (total elapsed time/ nloaded) in ms