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

Method initL2

ethstorage/node/node.go:133–147  ·  view source on GitHub ↗
(ctx context.Context, cfg *Config)

Source from the content-addressed store, hash-verified

131}
132
133func (n *EsNode) initL2(ctx context.Context, cfg *Config) error {
134 n.blobCache = downloader.NewBlobDiskCache(cfg.DataDir, n.lg)
135 n.downloader = downloader.NewDownloader(
136 n.l1Source,
137 n.l1Beacon,
138 n.daClient,
139 n.db,
140 n.storageManager,
141 n.blobCache,
142 cfg.L1.L1MinDurationForBlobsRequest,
143 cfg.Downloader,
144 n.lg,
145 )
146 return nil
147}
148
149func (n *EsNode) initL1(ctx context.Context, cfg *Config) error {
150 client, err := eth.Dial(cfg.L1.L1NodeAddr, cfg.Storage.L1Contract, cfg.L1.L1BlockTime, n.lg)

Callers 1

initMethod · 0.95

Calls 2

NewBlobDiskCacheFunction · 0.92
NewDownloaderFunction · 0.92

Tested by

no test coverage detected