aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/file.rs
Commit message (Collapse)AuthorAgeFilesLines
* config: files, arguments and layers, by a program's own optionstv2 days1-227/+6
| | | | | | | | | | | | | | | | | | | | | | | | What reads a configuration moves to the crate config, as it was, so that other programs read theirs alike: * option: Kind, OptionSpec, and Schema: a program's options, those that can't be combined, and those that are gone; * file: TOML and JSON files, their includes and unsets; * arguments: the options as arguments, --config and --unset, and files and arguments put together (merged); * layer: values and where they came from, a later source over the earlier ones (overlay), what a value was made of (Sources); * units: durations and sizes as operators write them, which continuum keeps under crate::units. Each takes the schema it reads by, where continuum's code went by its own tables: the node's is config::SCHEMA, a party's client's config::PARTY. Whether a value is shown goes by the schema read by, so an option of the node is no secret for being one of the client's. continuum keeps its options, the settings they make, their checks and the report; its tests of files and layers stay, by the node's options, and the crate has one by a schema of its own.
* federation: a node votes false by no rule: --store-nay-beside is gonetv6 days1-2/+10
| | | | | | | | | | | | | | | | | | | A node following a party copies no false, so a followed key voting twice finds nobody to end the first of its two checkpoints. With --store-nay-beside its followers cast that false by rule: it showed each checkpoint to some of them, voted false on one itself, had them end it and move to the other, and passed the first with the rest. Two checkpoint versions on one, by one key, in a federation of any size. The rule was there for two checkpoints proposed at once, which a node's wait before it proposes makes rare. Where they stay proposed, neither with two thirds, their parties end one by hand: the checkpoints guide says how (Two proposed at once). Row 59 says so, and its simulation has the one two thirds back pass, with no false cast. An option that is gone is named so, with what to do (config::GONE), on the command line and in a configuration file, where "unknown option" would leave an operator guessing.
* continuum-party: options from configuration files, as the node'stv14 days1-6/+17
| | | | | | | | | `continuum-party` takes its options (`node`, `token`, `key`, `record`: `config::PARTY_OPTIONS`) on the command line and in configuration files of the node's format: `--config`, repeatable, arguments winning, `--unset`, includes and imports. The configuration's loader takes the options it reads as a table (`config::with_options`, `config::merged`, `file::load_with`), the node's or the client's, and a key naming none of them is an error in either; `node` and `token` are secrets, never logged.
* config: includes load in file ordertv2026-11-011-11/+83
|
* tests: unify scratch dir logictv2026-10-311-11/+4
|
* unify UNSET constanttv2026-10-311-2/+1
|
* show interpolated values in GET /admin/configtv2026-10-261-7/+7
|
* allow humand-friendly durations and sizes in CLItv2026-10-261-2/+2
|
* allow unsetting config optionstv2026-10-241-23/+50
|
* add configuration filestv2026-10-241-0/+233