CodeChain-io / CodeChain-io/codechain-dashboard

Use RPC to get the port instead of parsing the argument

Open
#55 0 comments 0 reactions 0 assignees View on GitHub
client
Dominant language
Rust
Stars
27
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Currently, the client thinks the port of the node is 3485 if there is no argument.
https://github.com/CodeChain-io/codechain-dashboard/blob/2f061c27b74d44f1c4488e88a1d91c1640078c6a/client/src/process/mod.rs#L622
However, the port can be set through config.toml.
Please make it use `net_port` RPC.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at client/src/process/mod.rs around line 622 and inspect how the client determines the node port when no argument is provided. Use the net_port RPC instead of the default assumption, and verify that the client uses the configured node port.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.