Merge branch 'master' into readmefix

This commit is contained in:
Za Wilcox 2020-05-22 15:08:16 -06:00 committed by GitHub
commit fa67c0c6f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ func NewBlockCache(dbPath string, chainName string, startHeight int, redownload
break
}
length := binary.LittleEndian.Uint32(lengths[i*4 : (i+1)*4])
if length < 78 || length > 4*1000*1000 {
if length < 74 || length > 4*1000*1000 {
Log.Warning("lengths file has impossible value ", length)
c.recoverFromCorruption(c.nextBlock)
break