spv header sync works OK
This commit is contained in:
1 parent
6cebc7c952
commit
e6970e132e
4 files changed
+86
-54
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user