MCPcopy Create free account
hub / github.com/ethstorage/es-node / BlobDiskCache

Struct BlobDiskCache

ethstorage/downloader/blob_disk_cache.go:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25)
26
27type BlobDiskCache struct {
28 store billy.Database
29 storePath string
30 blockLookup map[uint64]*blockBlobs // Lookup table mapping block number to blockBlob
31 kvIndexLookup map[uint64]uint64 // Lookup table mapping kvIndex to blob billy entries id
32 mu sync.RWMutex // protects lookup and index maps
33 lg log.Logger
34}
35
36func NewBlobDiskCache(datadir string, lg log.Logger) *BlobDiskCache {
37 cbdir := filepath.Join(datadir, blobCacheDir)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected