A new command has been added to restart the CDK mints after recompiling, perfect for development workflows when you're making changes to the mint code.
just restart-mints
or
./misc/regtest_helper.sh restart-mints
cdk-mintd
binary with your latest changes# Terminal 1: Start environment
just regtest
# Terminal 2: Make code changes, then manually restart everything
# Ctrl+C in Terminal 1 (stops entire environment including Lightning network)
just regtest # Start everything again (slow)
# Terminal 1: Start environment (once)
just regtest
# Terminal 2: Make code changes, then quickly restart just the mints
just restart-mints # Fast! Keeps Lightning network running
just mint-test # Test your changes
cargo build
===============================
Restarting CDK Mints
===============================
Stopping existing mints...
Stopping CLN Mint (PID: 12345)
Stopping LND Mint (PID: 12346)
Recompiling cdk-mintd...
✓ Compilation successful
Starting CLN Mint...
Waiting for CLN mint to start...
✓ CLN Mint ready
Starting LND Mint...
Waiting for LND mint to start...
✓ LND Mint ready
✅ Mints restarted successfully!
CLN Mint: http://127.0.0.1:8085 (PID: 54321)
LND Mint: http://127.0.0.1:8087 (PID: 54322)
===============================
This feature makes the development experience much smoother when working on CDK mint functionality!