Remove dcrwallet operator feature

This commit is contained in:
2026-09-23 15:01:53 -07:00
parent 13ad9d2aa4
commit ae6685eb14
2 changed files with 11 additions and 62 deletions
+9 -17
View File
@@ -14,9 +14,9 @@ Render `dcrwallet.conf` with `sops-nix` and point the service at it. For example
sops.secrets."dcrwallet/rpcpass" = {};
sops.templates."dcrctl.conf" = {
path = "/home/operator/.dcrctl/dcrctl.conf";
owner = "operator";
group = "users";
path = "/var/lib/dcrwallet/.dcrctl/dcrctl.conf";
owner = config.services.dcrwallet.user;
group = config.services.dcrwallet.group;
mode = "0400";
content = ''
[Application Options]
@@ -52,17 +52,13 @@ Render `dcrwallet.conf` with `sops-nix` and point the service at it. For example
pkgs.dcrctl
pkgs.dcrd # promptsecret
];
operator = {
enable = true;
name = "stakey";
};
};
}
```
## Initialization
If you run dcrwallet as a service, here's how to intialize a wallet as `root`.
If you run dcrwallet as a service, initialize its wallet as the `dcrwallet` user.
```bash
cd /var/lib/dcrwallet
@@ -79,17 +75,13 @@ Then you need to start dcrwallet manually the first time to sync.
tmux new "doas -u dcrwallet $DCRWALLET_BIN --configfile=/run/secrets/rendered/dcrwallet.conf --appdata=/var/lib/dcrwallet"
```
## Using the operator
```sh
su - operator
dcrctl help
```
## Enable Voting
Use the operator account.
The wallet must be unlocked by the `dcrwallet` user. Its home directory is the
wallet data directory (`/var/lib/dcrwallet` by default), so `dcrctl` reads the
configuration rendered above from that user's home directory.
```sh
promptsecret | dcrwallet walletpassphrase - 0
su - dcrwallet
promptsecret | dcrctl --wallet walletpassphrase - 0
```