Skip to content

Add default rest_service_address - #173

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

Add default rest_service_address#173
benthecarman merged 2 commits into
lightningdevkit:mainfrom
vincenzopalazzo:claude/recursing-dirac

Conversation

@vincenzopalazzo

Copy link
Copy Markdown
Member

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

ldk-reviews-bot commented Mar 25, 2026

Copy link
Copy Markdown

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.

Comment thread ldk-server/src/util/config.rs

@benthecarman benthecarman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

Comment thread ldk-server/src/util/config.rs

@benthecarman benthecarman left a comment

Copy link
Copy Markdown
Collaborator

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
rsafier pushed a commit to rsafier/ldk-server that referenced this pull request Apr 20, 2026
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