chore: fix function name (#2501)

Signed-off-by: zoupingshi <hellocatty@tom.com>
This commit is contained in:
zoupingshi 2024-06-05 15:12:48 +08:00 committed by GitHub
parent 9bb4fed1bf
commit 1047f0e59a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -158,7 +158,7 @@ func (f *fetcherTester) chainFinalizedHeight() uint64 {
return f.blocks[f.hashes[len(f.hashes)-3]].NumberU64() return f.blocks[f.hashes[len(f.hashes)-3]].NumberU64()
} }
// insertChain injects a new headers into the simulated chain. // insertHeaders injects a new headers into the simulated chain.
func (f *fetcherTester) insertHeaders(headers []*types.Header) (int, error) { func (f *fetcherTester) insertHeaders(headers []*types.Header) (int, error) {
f.lock.Lock() f.lock.Lock()
defer f.lock.Unlock() defer f.lock.Unlock()