wp
This commit is contained in:
@@ -366,7 +366,7 @@ func openFile(fileName string, pageSize int) (_ *os.File, _ uint32, err error) {
|
||||
func (s *Atree) verifyCRC(data []byte, pageSize int) error {
|
||||
var (
|
||||
pos = pageSize - 4
|
||||
calculatedCRC = util.CalcChecksum(data[:pos])
|
||||
calculatedCRC = util.CalculateCRC32(data[:pos])
|
||||
storedCRC, _ = bin.GetUint32(data[pos:])
|
||||
)
|
||||
if calculatedCRC != storedCRC {
|
||||
|
||||
Reference in New Issue
Block a user