[claude] add sweep.conf template and install during setup (#41) #57
Reference in New Issue
Block a user
Delete Branch "claude/issue-41"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.confas a checked-in template file.Changes
COLD_ADDRESS="",KEEP_SATS=300000,MIN_SWEEP=50000(matches issue defaults)sweep.confto/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 backupinfrastructure/sweep.conf— this PR: template with COLD_ADDRESS, KEEP_SATS (300000), MIN_SWEEP (50000)infrastructure/lnd-init.sh— already on main: prompts for cold address, writes sweep.confinfrastructure/setup.sh— already on main: installs cron jobs (sweep 3am, backup 4am), copies sweep.sh; this PR adds sweep.conf copyops.sh sweep— already on main: prints config, balance, last 5 log lines