From 7bb49801fc12fd21e49005b34a84cabe83ef76ec Mon Sep 17 00:00:00 2001 From: Arijit Das Date: Tue, 24 Aug 2021 18:44:59 +0530 Subject: [PATCH] Address comments. --- postgres/database.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/postgres/database.go b/postgres/database.go index ac71c3f..702db6b 100644 --- a/postgres/database.go +++ b/postgres/database.go @@ -288,6 +288,15 @@ func (d *Database) AppendAncient(number uint64, hash, header, body, receipt, td return errNotSupported } +// ReadAncients retrieves multiple items in sequence, starting from the index 'start'. +// It will return +// - at most 'count' items, +// - at least 1 item (even if exceeding the maxBytes), but will otherwise +// return as many items as fit into maxBytes. +func (d *Database) ReadAncients(kind string, start, count, maxBytes uint64) ([][]byte, error) { + return nil, errNotSupported +} + // TruncateAncients satisfies the ethdb.AncientWriter interface // TruncateAncients discards all but the first n ancient data from the ancient store func (d *Database) TruncateAncients(n uint64) error {