mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
ConfigSpec.JSON() exports the flag specification as JSON. Duration-typed default values (e.g. consensus timeouts) need to render as integer nanoseconds for v1-compatible consumers and so the embedded JSON fixtures roundtrip. Pass jsonv1.FormatDurationAsNano(true) at the Marshal site.