From c53bde7e17c1884c93e9a72f9a8c688c029896ff Mon Sep 17 00:00:00 2001 From: jsvisa Date: Wed, 2 Jul 2025 01:36:49 +0800 Subject: [PATCH] no dup uint64 Signed-off-by: jsvisa --- core/rawdb/freezer.go | 2 +- core/rawdb/freezer_resettable.go | 2 +- ethdb/database.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/rawdb/freezer.go b/core/rawdb/freezer.go index 32670e0f46..b38910fa05 100644 --- a/core/rawdb/freezer.go +++ b/core/rawdb/freezer.go @@ -203,7 +203,7 @@ func (f *Freezer) AncientRange(kind string, start, count, maxBytes uint64) ([][] } // RetrieveBytes retrieves a byte range [offset:offset+length] from the specified ancient item. -func (f *Freezer) AncientBytes(kind string, number uint64, offset, length uint64) ([]byte, error) { +func (f *Freezer) AncientBytes(kind string, number, offset, length uint64) ([]byte, error) { if table := f.tables[kind]; table != nil { return table.RetrieveBytes(number, offset, length) } diff --git a/core/rawdb/freezer_resettable.go b/core/rawdb/freezer_resettable.go index bd7d990125..3df1633865 100644 --- a/core/rawdb/freezer_resettable.go +++ b/core/rawdb/freezer_resettable.go @@ -127,7 +127,7 @@ func (f *resettableFreezer) AncientRange(kind string, start, count, maxBytes uin } // RetrieveBytes retrieves a byte range [offset:offset+length] from the specified ancient item. -func (f *resettableFreezer) AncientBytes(kind string, number uint64, offset, length uint64) ([]byte, error) { +func (f *resettableFreezer) AncientBytes(kind string, number, offset, length uint64) ([]byte, error) { f.lock.RLock() defer f.lock.RUnlock() return f.freezer.AncientBytes(kind, number, offset, length) diff --git a/ethdb/database.go b/ethdb/database.go index 3a1129b570..e6c10245f6 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -122,7 +122,7 @@ type AncientReaderOp interface { AncientRange(kind string, start, count, maxBytes uint64) ([][]byte, error) // AncientBytes retrieves a byte range [offset:offset+length] from the specified ancient item. - AncientBytes(kind string, number uint64, offset, length uint64) ([]byte, error) + AncientBytes(kind string, number, offset, length uint64) ([]byte, error) // Ancients returns the ancient item numbers in the ancient store. Ancients() (uint64, error)