skycoin / skywire

Skywire Node implementation
73 stars 45 forks source link

`config gen` for setup-node #1761

Closed 0pcom closed 3 months ago

0pcom commented 3 months ago

Seems it's not possible to run a setup-node against a regular skywire.json visor config.

2024/03/11 10:42:44 Invalid secret key
panic: Invalid secret key

goroutine 143 [running]:
log.Panic({0xc00059bd00?, 0x0?, 0x0?})
    /usr/lib/go/src/log/log.go:432 +0x5a

So I'm generating the config by parsing the output of config gen with jq.

skywire cli config gen -n --loglvl debug | jq '{public_key: .pk, secret_key: .sk, dmsg: {discovery: .dmsg.discovery, sessions_count: .dmsg.sessions_count, servers: .dmsg.servers}, transport_discovery: .transport.discovery, log_level: .log_level}'

we should make skywire cli config gen able to output the desired config for setup-node so that extra tools or manually creating the config is not required

0pcom commented 3 months ago

fixed in #1783