digital-asset / digital-asset/cn-quickstart

expose LocalNet's scan and registry as actual ports

Open
#264 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Haskell
Stars
49
Forks
40
Avg merge
4d 11h
Merged PRs (30d)
5

Description

### Problem description

The Java example demonstrating external party creation cannot use the Scan proxy. The problem is that it can't resolve `scan.localhost` against LocalNet supervalidator. The fix is to expose scan and registry in LocalNet using actual ports.

Bernhard has suggested a workaround is to expose the Scan API on a port on straight localhost with a simple edit that adds these two locations to the localhost server in `sv.conf`:
```
location /api/scan {
rewrite ^\/(.*) /$1 break;
proxy_pass http://splice:5012/api/scan;
}
location /registry {
rewrite ^\/(.*) /$1 break;
proxy_pass http://splice:5012/registry;
}
```

The documentation would need to be updated.

Related is https://github.com/digital-asset/cn-quickstart/issues/263

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with LocalNet's sv.conf and the Java example for external party creation; inspect how Scan and registry are currently exposed. Verify that both endpoints are reachable through actual ports and that the example can resolve them, then update the relevant documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, documentation, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.