init

The init command is the first command to call when setting up a new MakeOS node using the Kit client. Its purpose is to create the necessary directories, files and seed them with default configuration values required to connect and interact with the MakeOS network.

Usage

kit init [options]
This command initializes the node's data directory and config files.

Usage:
  kit init [flags]

Flags:
  -s, --gen-state string       Specify raw or path to genesis state
  -t, --gen-time uint          Specify genesis time (default: current UTC time)
  -h, --help                   help for init
      --v1                     Configure the node for testnet v1
  -k, --validator-key string   Private key to use for validator role
  -v, --validators strings     Public key of initial validators

Options

  • -s, --gen-state - Specify a path to a JSON file containing the genesis state.

  • -t, --gen-time - Provide the Unix timestamp when the blockchain will start.

  • -h, --help - Print out help message for the command.

  • --v1 - Apply network preset for testnet v1.

  • -k, --validator-key - The base58 encoded private key to use as the node’s validator private key.

  • -v, --validators - A comma-separated list of base58 encoded public keys of the initial validators.

Examples

The example below initializes the node in development mode setting the genesis validators using the -v flag, its validator key using -k flag and the genesis time with the -t flag.

kit init --dev --home.prefix mynode \
    -v 489XdyeZjDqx4GQiegutACHpeJb89ZBL5K3XEmfZTJtr1CcPJy1,\
        49Ejroft49qZjvf8aAbUfhJEXtAy4L9W5rotS1z8v494EbjxbBe, \
        47p1YrT93a5m33SHsqH3CU1n3vYW7CR2bybjd4SNVicYLQ1CcSC \
    -k wLPUBRgJ1kQ73AVaqfZ9vpzikh4J34qxdsAbDaQAK4ic7JJZkLfbNuufL8eXXmXdTR6eei1G68RYw8kG7gJ8qwmZC27EuQ \
    -t 1595700581

Last updated