Skip to content

Add default rest_service_address#173

Open
vincenzopalazzo wants to merge 1 commit intolightningdevkit:mainfrom
vincenzopalazzo:claude/recursing-dirac
Open

Add default rest_service_address#173
vincenzopalazzo wants to merge 1 commit intolightningdevkit:mainfrom
vincenzopalazzo:claude/recursing-dirac

Conversation

@vincenzopalazzo
Copy link
Contributor

Summary

  • Make rest_service_address optional in the config file with a default of 127.0.0.1:3536
  • Uses serde's default attribute so existing configs with the field set continue to work unchanged
  • Updates example config to document the field as optional
  • Adds test covering the default behavior

Closes #160

Test plan

  • Existing test test_read_json_config_from_file passes (explicit address still works)
  • New test test_default_rest_service_address passes (omitted field defaults to 127.0.0.1:3536)
  • cargo check and cargo test pass

🤖 Generated with Claude Code

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Mar 25, 2026

I've assigned @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Make `rest_service_address` optional in the config, defaulting to
`127.0.0.1:3536` when not specified. This reduces required config for
most users who don't need a custom REST address.

Closes: lightningdevkit#160

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vincenzopalazzo vincenzopalazzo force-pushed the claude/recursing-dirac branch from f4c8486 to fb1f7f1 Compare March 25, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add default rest_service_address

2 participants