MCPcopy Create free account
hub / github.com/encodeous/nylon / SampleConfigState

Function SampleConfigState

state/utils_test.go:83–93  ·  view source on GitHub ↗
(cfg *CentralCfg, keyStore map[string]NyPrivateKey, node NodeId)

Source from the content-addressed store, hash-verified

81}
82
83func SampleConfigState(cfg *CentralCfg, keyStore map[string]NyPrivateKey, node NodeId) ConfigState {
84 return ConfigState{
85 CentralCfg: *cfg,
86 LocalCfg: LocalCfg{
87 Key: keyStore[string(node)],
88 Id: node,
89 Port: 5000,
90 NoNetConfigure: false,
91 },
92 }
93}

Callers 1

TestSerializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected