diff --git a/pkg/client/database.go b/pkg/client/database.go index 517e094..a92d31e 100644 --- a/pkg/client/database.go +++ b/pkg/client/database.go @@ -31,10 +31,6 @@ type DatabaseClient struct { client *rpc.Client } -func (d *DatabaseClient) ModifyAncients(f func(ethdb.AncientWriteOp) error) (int64, error) { - return 0, errNotSupported -} - // NewDatabase returns a ethdb.Database interface func NewDatabaseClient(url string) (ethdb.Database, error) { rpcClient, err := rpc.Dial(url) @@ -208,6 +204,12 @@ func (d *DatabaseClient) ReadAncients(fn func(ethdb.AncientReader) error) (err e return fn(d) } +// ModifyAncients satisfies the ethdb.AncientWriter interface. +// ModifyAncients runs a write operation on the ancient store. +func (d *DatabaseClient) ModifyAncients(f func(ethdb.AncientWriteOp) error) (int64, error) { + return 0, errNotSupported +} + // TruncateHead satisfies the ethdb.AncientWriter interface. // TruncateHead discards all but the first n ancient data from the ancient store. func (d *DatabaseClient) TruncateHead(n uint64) error {