Skip to content

[DataAvailability] Add methods to expose data in caches #7378

@peterargue

Description

@peterargue

This replaces: #7234

See comments for details: https://github.com/onflow/flow-go/pull/7234/files#r2070382546

Add methods to each of the in-memory caches that returns the core data stored for the type. The persister module will call this method to get all data for the pipeline, then call the BatchStore method for the corresponding storage object to add the entries to a batch.

Some caches maintain multiple values and indexes. The method only needs to return the data required to call the storage object, which may implement similar indexing logic.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions