Permalink
Browse files

Disable headers code for now.

Needs more timing tests, as various people have reported it to be too slow.
As this was a component that was being finalized before being used, there is
no functionality being disabled.
  • Loading branch information...
zander committed Jul 31, 2017
1 parent 8fd3c10 commit 056532dfd2878bc8ab52d984ea2c6e8113af55ac
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/BlocksDB.cpp
View
@@ -367,9 +367,11 @@ bool Blocks::DB::CacheAllBlockInfos()
for (auto iter = Blocks::indexMap.begin(); iter != Blocks::indexMap.end(); ++iter) {
iter->second->BuildSkip();
}
for (auto iter = Blocks::indexMap.begin(); iter != Blocks::indexMap.end(); ++iter) {
appendHeader(iter->second);
}
// according to reports (github issue 276) this is too slow for some reason. Lets
// turn this off for now.
// for (auto iter = Blocks::indexMap.begin(); iter != Blocks::indexMap.end(); ++iter) {
// appendHeader(iter->second);
// }
if (Application::uahfChainState() != Application::UAHFDisabled) {
uint256 uahfStartBlockId;

0 comments on commit 056532d

Please sign in to comment.