12db06cc26745b72b0e5ffdef894aeb1c7ed36e1
New file: infrastructure/sweep.sh - Reads /opt/timmy-node/sweep.conf (COLD_ADDRESS, KEEP_SATS=300000, MIN_SWEEP=50000) - Queries LND on-chain confirmed balance via lncli walletbalance - Calculates sweep_amt = balance - KEEP_SATS; skips if < MIN_SWEEP - Sends via lncli sendcoins --addr $COLD_ADDRESS --amt $sweep_amt - Logs timestamp, balance, sweep amount, txid to /var/log/timmy-sweep.log - Triggers ops.sh backup after every successful sweep - Exits cleanly (no crash) if conf missing, address unset, or balance too low Updated: infrastructure/setup.sh - Copies sweep.sh and ops.sh to /opt/timmy-node/ during bootstrap - Installs two cron jobs: sweep at 3am UTC, backup at 4am UTC - Creates /var/log/timmy-sweep.log and /var/log/timmy-backup.log - Idempotent: removes existing timmy-node cron entries before re-adding Updated: infrastructure/lnd-init.sh - New "Cold Storage Auto-Sweep Setup" section after LNbits wallet creation - Prompts for cold Bitcoin address (optional — skip to configure later) - Writes /opt/timmy-node/sweep.conf with address + documented defaults - sweep.conf chmod 600 (sensitive — contains sweep destination) - Graceful skip path with instructions for later configuration Updated: infrastructure/ops.sh - New `sweep` command: shows sweep.conf config, current on-chain balance, last 5 lines of /var/log/timmy-sweep.log - New `run-sweep` command: triggers sweep.sh immediately outside cron - Help text updated with both new commands
Description
Timmy Tower World — sovereign AI agent economy
Languages
TypeScript
68.9%
JavaScript
15.5%
Shell
10.6%
HTML
4.5%
CSS
0.4%