spv header sync works OK

This commit is contained in:
Tadge Dryja authored and Olaoluwa Osuntokun committed 2016-01-14 23:58:05 -08:00
1 parent 6cebc7c952
commit e6970e132e
4 files changed
+86 -54

No files matched your search

+1 -1
View File
@@ -110,7 +110,7 @@ func CheckHeader(r io.ReadSeeker, height int64, p *chaincfg.Params) bool {
log.Printf(err.Error())
return false
}
log.Printf("start epoch at height %d ", height-(height%epochLength))
// log.Printf("start epoch at height %d ", height-(height%epochLength))
// seek to n-1 header
_, err = r.Seek(80*(height-1), os.SEEK_SET)