From cc9aadf0415d726bc4d2d76e864416681344dec9 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 20 Dec 2013 14:01:25 -0600 Subject: [PATCH] Don't use headers first when checkpoints disabled. Headers first relies on having valid checkpoints, so if checkpoints are disabled, it needs to be disabled as well. --- blockmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockmanager.go b/blockmanager.go index 95fabb67..a285a776 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -157,7 +157,7 @@ func (b *blockManager) startSync(peers *list.List) { // via inv messages. Regression test mode does not support the // headers-first approach so do normal block downloads when in // regression test mode. - if height == 0 && !cfg.RegressionTest { + if height == 0 && !cfg.RegressionTest && !cfg.DisableCheckpoints { bestPeer.PushGetHeadersMsg(locator) b.fetchingHeaders = true } else {