LiskArchive / lisk-sdk

🔩 Lisk software development kit
https://lisk.com
Apache License 2.0
2.72k stars 457 forks source link

"lisk-core config:show" shows incorrect configuration #9175

Closed Lemii closed 6 months ago

Lemii commented 6 months ago

Expected behavior

The command lisk-core config:show should show the config that is currently in use by Lisk Core

Actual behavior

The command lisk-core config:show shows the config file located in the default path (~/.lisk/lisk-core/config/config.json), even though a custom configuration file is specified in the start command.

Steps to reproduce

{
        "name": "lisk-core-v4",
        "script": "lisk-core start --network mainnet --config /home/lisk/custom-config.json"
}

Important

Please note that lisk-core does actually utilize the custom configuration. The only issue that is presen is that an incorrect config is shown when executing the lisk-core config:show command.

Which version(s) does this affect? (Environment, OS, etc...)

Lisk Core v4.0.1

shuse2 commented 6 months ago

i think config:show just shows what default configuration they have on lisk-core forthe particular network it's running. you can supply the --config option to get the resulting configuration

shuse2 commented 6 months ago

duplicate of #6335