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

Interface Il1Source

ethstorage/storage_manager.go:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59type FetchBlobFunc func(kvIndex uint64, hash common.Hash) ([]byte, error)
60
61type Il1Source interface {
62 GetKvMetas(kvIndices []uint64, blockNumber int64) ([][32]byte, error)
63
64 GetStorageKvEntryCount(blockNumber int64) (uint64, error)
65}
66
67// StorageManager is a higher-level abstract of ShardManager which provides multi-thread safety to storage file read/write
68// and a consistent view of most-recent-finalized L1 block.

Callers 7

downloadMetaInRangeMethod · 0.65
checkMetaMethod · 0.65
TestMiningFunction · 0.65
DownloadFinishedMethod · 0.65
ResetMethod · 0.65
getKvInfoFunction · 0.65
RefreshBlobsMetricsMethod · 0.65

Implementers 3

mockL1Sourceethstorage/storage_manager_test.go
mockL1Sourceethstorage/p2p/protocol/sync_test.go
PollingClientethstorage/eth/polling_client.go

Calls

no outgoing calls

Tested by

no test coverage detected