Lisk-sdk: Support multiple networks with one installation

Created on 19 Jan 2017  Â·  4Comments  Â·  Source: LiskHQ/lisk-sdk

In our current implementation various files are required to be modified to change what network is able to be used.

These files are:

helpers/constants.js
helpers/exceptions.js
config.json
genesisBlock.json

The goal of this change is to simplify the use:

  • the ease of running a node from source with any network from a single command, like node app --mainnet
  • clarity of network - specific variables
  • decreasing risk of making mistake while merging network specific files during releases
improvement framework

Most helpful comment

@MaciejBaj Question, we will keep configuration files for different networks in source. Do you also want to keep those in compile builds? So one build can also be used for different networks? My suggestion would be to do it.

All 4 comments

After 1.0.0 the list of "network-dependant files" shapes as follows:

  • [ ] config.json
  • [ ] genesis_block.json
  • [ ] helpers/exceptions.js
  • [ ] helpers/constants.js
  • [ ] scripts/update_config.js

Keeping them on one branch would decrease possible confusion and risk connected with working and releasing next versions on different networks:

  • Alphanet (Devnet),
  • Betanet,
  • Testnet,
  • Mainnet.

Each change to "network-dependant file" would have to added to:

  • feature branch (like 1.0.0-beta.9.0).

:)

2018-06-15 14:28 GMT+02:00 Maciej Baj notifications@github.com:

After 1.0.0 the list of "network-dependant files" shapes as follows:

  • config.json
  • genesis_block.json
  • helpers/exceptions.js
  • helpers/constants.js
  • scripts/update_config.js

Keeping them on one branch would decrease possible confusion and risk
connected with working and releasing next versions on different networks:

  • Alphanet (Devnet),
  • Betanet,
  • Testnet,
  • Mainnet.

Each change to "network-dependant file" would have to added to:

  • feature branch (like 1.0.0-beta.9.0).

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/LiskHQ/lisk/issues/398#issuecomment-397605462, or mute
the thread
https://github.com/notifications/unsubscribe-auth/APzFsO6gItgBgJSFhsOXqakADcmEZ7-lks5t86iBgaJpZM4LoVsK
.

@MaciejBaj Question, we will keep configuration files for different networks in source. Do you also want to keep those in compile builds? So one build can also be used for different networks? My suggestion would be to do it.

Please guys, don't forget helpers/milestones.js and genesis_delegates.js when applies.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hendrikhofstadt picture hendrikhofstadt  Â·  4Comments

willclarktech picture willclarktech  Â·  4Comments

karek314 picture karek314  Â·  3Comments

slaweet picture slaweet  Â·  4Comments

ManuGowda picture ManuGowda  Â·  3Comments