diff options
| author | tv <tv@krebsco.de> | 2026-11-19 20:55:59 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-19 22:10:09 +0100 |
| commit | 011560a72ca895d8b516983485cfc45c9984cd45 (patch) | |
| tree | 50befd374201d3b7993b8e9b2872e4f6be05beec /src/config/mod.rs | |
| parent | b827ecbfff930790af45b04b8e6f01e4f5514e75 (diff) | |
continuum-party --party: the party it reads as, without a record
A record is what votes go by, and what `again` signs anew from; for
logging in as the party, and for `status`, it only named the party. So
someone who only reads needed a record, begun with `init`, which should
never vote beside the party's own.
`--party NAME` (an option as node, key and record are, so party.toml
holds it too) names the party where no record does (working_as): `init`
the one it begins a record of, else the record's, else --party; --party
naming another than these is an error. Commands that sign still take a
record.
Diffstat (limited to 'src/config/mod.rs')
| -rw-r--r-- | src/config/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 0b6a58a..1f6ad60 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -781,6 +781,13 @@ pub(crate) const PARTY_OPTIONS: &[OptionSpec] = &[ None, "The party's record of its votes, written before each vote is sent", ), + option( + "party", + Kind::Text, + "NAME", + None, + "The party it works as where no record names it, for reading: the one it logs in to the node as, by --key, where --node names no user and no --token is given", + ), ]; #[cfg(not(feature = "federation"))] const PARTY_OPTIONS: &[OptionSpec] = &[]; |
