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

Function AddDataFileFromConfig

ethstorage/shard_config.go:86–98  ·  view source on GitHub ↗
(cfg string)

Source from the content-addressed store, hash-verified

84}
85
86func AddDataFileFromConfig(cfg string) error {
87 df, err := OpenDataFile(cfg)
88 if err != nil {
89 return err
90 }
91
92 sm := findShardManaager(df.maxKvSize)
93 if sm == nil {
94 return fmt.Errorf("shard with kv size %d not found", df.maxKvSize)
95 }
96
97 return sm.AddDataFile(df)
98}
99
100func IsComplete() error {
101 for _, sm := range ContractToShardManager {

Callers

nothing calls this directly

Calls 3

OpenDataFileFunction · 0.85
findShardManaagerFunction · 0.85
AddDataFileMethod · 0.45

Tested by

no test coverage detected