Skip to content

Add default rest_service_address#173

Merged
benthecarman merged 2 commits intolightningdevkit:mainfrom
vincenzopalazzo:claude/recursing-dirac
Mar 25, 2026
Merged

Add default rest_service_address#173
benthecarman merged 2 commits 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.

Copy link
Collaborator

@benthecarman benthecarman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Collaborator

@benthecarman benthecarman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm on squash

vincenzopalazzo and others added 2 commits March 25, 2026 19:05
Default `rest_service_address` to `127.0.0.1:3536` when omitted from the server config.

Closes: lightningdevkit#160

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use the same default REST address in the CLI when config omits `node.rest_service_address` and when `--base-url` is not provided.
@vincenzopalazzo vincenzopalazzo force-pushed the claude/recursing-dirac branch from 8f44434 to caf35e1 Compare March 25, 2026 18:06
@benthecarman benthecarman merged commit b21ccff into lightningdevkit:main Mar 25, 2026
7 checks passed
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

3 participants