From 017a8209c74a0b73c993a3bb25569e116f019405 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 15 Nov 2019 12:10:38 +0100 Subject: [PATCH] core/forkid: remove unused function checksum --- core/forkid/forkid.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/forkid/forkid.go b/core/forkid/forkid.go index 1e2d7a7441..e433db4460 100644 --- a/core/forkid/forkid.go +++ b/core/forkid/forkid.go @@ -186,13 +186,6 @@ func newFilter(config *params.ChainConfig, genesis common.Hash, headfn func() ui } } -// checksum calculates the IEEE CRC32 checksum of a block number. -func checksum(fork uint64) uint32 { - var blob [8]byte - binary.BigEndian.PutUint64(blob[:], fork) - return crc32.ChecksumIEEE(blob[:]) -} - // checksumUpdate calculates the next IEEE CRC32 checksum based on the previous // one and a fork block number (equivalent to CRC32(original-blob || fork)). func checksumUpdate(hash uint32, fork uint64) uint32 {