Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Fix network config - Closes #3466 #3478

Merged
merged 7 commits into from
May 1, 2019
Merged

Conversation

shuse2
Copy link
Collaborator

@shuse2 shuse2 commented Apr 29, 2019

What was the problem?

Network config was outdated with the new structure.

How did I fix it?

Update the keys for the network configs and fix the update_config script.

How to test it?

Create sample script to migrate
LISK_NETWORK=mainnet node scripts/update_config.js config_sample.json 1.6.0 2.0.0
Also, check the config keys

Review checklist

@@ -8,16 +8,13 @@ const defaultConfig = {
env: 'LISK_WS_PORT',
arg: '--port,-p',
},
address: {
hostAddress: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need to change the config, not the usage? Similar name used in the http_api module as well, should we change it there as well?

framework/src/modules/network/network.js Outdated Show resolved Hide resolved
lisk/scripts/update_config.js Show resolved Hide resolved
ishantiw
ishantiw previously approved these changes Apr 30, 2019
Copy link
Contributor

@ishantiw ishantiw left a comment

Choose a reason for hiding this comment

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

LGTM

ishantiw
ishantiw previously approved these changes Apr 30, 2019
Co-Authored-By: shuse2 <shuse2@users.noreply.github.com>
@shuse2 shuse2 requested a review from ishantiw April 30, 2019 15:20
@@ -439,7 +439,7 @@
}
},
"network": {
"list": [
"seedPeers": [
{
"ip": "127.0.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to keep the ip field or rename it to ipAddress to match the p2p library?
Either way is OK for me, just something to think about.

@shuse2 shuse2 merged commit 584a968 into development May 1, 2019
@shuse2 shuse2 deleted the 3466-fix_network_config branch May 1, 2019 07:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update network config and update_config script accordingly
4 participants