Open diwu1989 opened 2 years ago
I don't think any of the -content
flags are currently really intended to be heavily used. Unless you have a specialized setup, the expected way to specify chain configs is documented here. Does that not work for your use-case?
Also we always welcome PR on https://github.com/ava-labs/avalanche-docs
Passing in the config via environment variable is way easier for me in K8s.
This issue has become stale because it has been open 60 days with no activity. Adding the lifecycle/frozen
label will cause this issue to ignore lifecycle events.
flag
--chain-config-content
is VERY difficult to use. There's no good documentation for it, and I had to read the source code to really figure out how it works.The structure expected is a base64 encoding of a JSON map from chain-id to a
{Config: <base64 encoded chain config>}
There's 2 level of base64 encoding because each chain-config itself has to be b64 encoded first, and then stuffed into a{chainId: {Config: string}}
JSON, and b64 encoded yet again...Please document this more clearly and add examples for this.