lisk-sdk icon indicating copy to clipboard operation
lisk-sdk copied to clipboard

Update lisk init command to take networkID as input

Open ishantiw opened this issue 2 years ago • 0 comments

Description

Update lisk init command to take networkID (1 byte) as input and ask rest of chainID (3 bytes) separately from the user which can help users to identify correct chainID with networkID for their sidechain as well as we can do some validation for networkID as well.

Possible questionnaire related to chainID,

  1. Choose networkID:
    1. mainnet 00
    2. testnet 01
    3. betanet 02
    4. alphanet 03
    5. devnet 04
    6. custom // custom should check that it is smaller than 0x80
  2. Choose chainID without networkID in hex representation. Remaining chainID must be 3 bytes (6 characters): 000001

Acceptance Criteria

  • Should have all the relevant unit tests covering the feature

ishantiw avatar Jan 27 '23 13:01 ishantiw