[claude] add sweep.conf template and install during setup (#41) #57

Merged
Rockachopa merged 1 commits from claude/issue-41 into main 2026-03-23 14:52:00 +00:00
Collaborator

Fixes #41

Summary

The auto-sweep infrastructure (sweep.sh, ops.sh sweep/configure-sweep/run-sweep, lnd-init.sh cold address prompt, setup.sh cron jobs) was already fully implemented on main. The only missing acceptance criterion was infrastructure/sweep.conf as a checked-in template file.

Changes

  • infrastructure/sweep.conf — new default config template with COLD_ADDRESS="", KEEP_SATS=300000, MIN_SWEEP=50000 (matches issue defaults)
  • infrastructure/setup.sh — copies sweep.conf to /opt/timmy-node/ during bootstrap (only if no existing config, so lnd-init.sh values are preserved)

Acceptance criteria coverage

  • infrastructure/sweep.sh — already on main: reads sweep.conf, queries walletbalance, calculates sweep, sends via sendcoins, logs to /var/log/timmy-sweep.log, exits cleanly on missing address/low balance, calls ops.sh backup
  • infrastructure/sweep.confthis PR: template with COLD_ADDRESS, KEEP_SATS (300000), MIN_SWEEP (50000)
  • infrastructure/lnd-init.sh — already on main: prompts for cold address, writes sweep.conf
  • infrastructure/setup.sh — already on main: installs cron jobs (sweep 3am, backup 4am), copies sweep.sh; this PR adds sweep.conf copy
  • ops.sh sweep — already on main: prints config, balance, last 5 log lines
  • All scripts exit cleanly when COLD_ADDRESS is unset
Fixes #41 ## Summary The auto-sweep infrastructure (sweep.sh, ops.sh sweep/configure-sweep/run-sweep, lnd-init.sh cold address prompt, setup.sh cron jobs) was already fully implemented on main. The only missing acceptance criterion was `infrastructure/sweep.conf` as a checked-in template file. ## Changes - **infrastructure/sweep.conf** — new default config template with `COLD_ADDRESS=""`, `KEEP_SATS=300000`, `MIN_SWEEP=50000` (matches issue defaults) - **infrastructure/setup.sh** — copies `sweep.conf` to `/opt/timmy-node/` during bootstrap (only if no existing config, so lnd-init.sh values are preserved) ## Acceptance criteria coverage - [x] `infrastructure/sweep.sh` — already on main: reads sweep.conf, queries walletbalance, calculates sweep, sends via sendcoins, logs to /var/log/timmy-sweep.log, exits cleanly on missing address/low balance, calls ops.sh backup - [x] `infrastructure/sweep.conf` — **this PR**: template with COLD_ADDRESS, KEEP_SATS (300000), MIN_SWEEP (50000) - [x] `infrastructure/lnd-init.sh` — already on main: prompts for cold address, writes sweep.conf - [x] `infrastructure/setup.sh` — already on main: installs cron jobs (sweep 3am, backup 4am), copies sweep.sh; **this PR** adds sweep.conf copy - [x] `ops.sh sweep` — already on main: prints config, balance, last 5 log lines - [x] All scripts exit cleanly when COLD_ADDRESS is unset
claude added 1 commit 2026-03-23 01:50:03 +00:00
feat: add sweep.conf template and install it during setup
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
d423885d51
Add infrastructure/sweep.conf as a default config template with
COLD_ADDRESS, KEEP_SATS (300000), and MIN_SWEEP (50000). Update
setup.sh to copy this template to /opt/timmy-node/ during bootstrap
(preserving any existing config from lnd-init.sh).

Fixes #41

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rockachopa merged commit 1f9822aa11 into main 2026-03-23 14:52:00 +00:00
This repo is archived. You cannot comment on pull requests.