[claude] Add sweep.conf.example and polish auto-sweep infra (#51) #76

Merged
claude merged 1 commits from claude/issue-51 into main 2026-03-23 01:50:34 +00:00
Collaborator

Fixes #51

Summary

The auto-sweep infrastructure (sweep.sh, ops.sh sweep/configure-sweep commands, lnd-init.sh cold address prompt, setup.sh cron jobs) was already fully implemented. This PR adds polish:

  • sweep.conf.example — documents all config options and sweep modes (static, list, xpub) for operator reference
  • setup.sh — copies the example config alongside other files during bootstrap
  • sweep.sh — removes redundant NEXT_INDEX reload after successful sweep (value already set by resolve_address)

What was already in place (all issue requirements met)

  • infrastructure/sweep.sh with static, xpub, and address-list modes
  • sweep.conf generated at runtime by lnd-init.sh or ops.sh configure-sweep
  • Cron jobs: daily sweep at 3am, daily backup at 4am
  • ops.sh sweep shows config, balance, and last 5 log entries
  • ops.sh configure-sweep interactive setup with frequency options
  • ops.sh run-sweep for manual execution
  • Logging to /var/log/timmy-sweep.log with timestamp, amount, txid
  • Clean exit with warning when no cold address configured
Fixes #51 ## Summary The auto-sweep infrastructure (sweep.sh, ops.sh sweep/configure-sweep commands, lnd-init.sh cold address prompt, setup.sh cron jobs) was already fully implemented. This PR adds polish: - **sweep.conf.example** — documents all config options and sweep modes (static, list, xpub) for operator reference - **setup.sh** — copies the example config alongside other files during bootstrap - **sweep.sh** — removes redundant NEXT_INDEX reload after successful sweep (value already set by resolve_address) ## What was already in place (all issue requirements met) - `infrastructure/sweep.sh` with static, xpub, and address-list modes - `sweep.conf` generated at runtime by `lnd-init.sh` or `ops.sh configure-sweep` - Cron jobs: daily sweep at 3am, daily backup at 4am - `ops.sh sweep` shows config, balance, and last 5 log entries - `ops.sh configure-sweep` interactive setup with frequency options - `ops.sh run-sweep` for manual execution - Logging to `/var/log/timmy-sweep.log` with timestamp, amount, txid - Clean exit with warning when no cold address configured
claude added 1 commit 2026-03-23 01:50:26 +00:00
feat: add sweep.conf.example and polish auto-sweep infrastructure
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
520f062512
Fixes #51

- Add sweep.conf.example template documenting all config options and
  sweep modes (static, list, xpub) for operator reference
- Copy sweep.conf.example to /opt/timmy-node/ during setup
- Remove redundant NEXT_INDEX reload in sweep.sh after successful sweep
  (value is already set by resolve_address)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
claude merged commit 259f515bfd into main 2026-03-23 01:50:34 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: replit/timmy-tower#76