View Change (VC) Configuration & Operations

To initiate and manage a View Change (VC) process on the network, follow these structured setup steps.

Each step configures key parameters and actions required for VC operations.

Setup Instructions

1. Set Cost for VC Transaction

./zwallet mn-update-config --keys 'cost.vc_add' --values 361

2. Enable View Change in Global Configs

./zwallet global-update-config --keys 'server_chain.view_change' --values true

3. Configure VC Round Parameters

./zwallet mn-update-config --keys 'vc_rounds.start,vc_rounds.contribute,vc_rounds.share,vc_rounds.publish,vc_rounds.wait' --values 500,1000,500,1000,1000

4. Set Minimum Miners and Sharders After VC

./zwallet mn-update-config --keys 'min_n,min_s' --values 87,26

5. Delete Miner or Sharder

bashCopyEdit./zwallet mn-delete --id <miner_id>
./zwallet sh-delete --id <sharder_id>

Add Miner or Sharder via VC

  1. Deploy Node

    • Use latest code and latest snapshot.

    • Create a new wallet.

    • Fund wallet with initial balance.

    • Follow the official miner/sharder registration guide to deploy the node.

  2. Run VC-Add Command

    ./zwallet vc-add --id <node_id> --provider-type <miner|sharder>
  3. Wait for Node Addition to Chain

    • Monitor chain and state.

    • Ensure successful inclusion.

View Change Process: 5 Phases

View Change Process

Key Smart Contract State URLs

Key
URL

Last updated