Skip to content

v1.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Aug 17:52
· 1517 commits to main since this release
1db7295

Some breaking changes were made to RPC protocol definition:

  • ClusterInfo's field custom_vms_healthy renamed to custom_chains_healthy
  • ClusterInfo's field custom_vms renamed to custom_chains, and type changed from map<string, CustomVmInfo> to map<string, CustomChainInfo>
  • CustomVmInfo renamed to CustomChainInfo
  • CustomChainInfo's field vm_name renamed to chain_name
  • CustomChainInfo's field blockchain_id renamed to chain_id
  • StartRequest's field custom_vms renamed to blockchain_specs, and type changed from map<string, string> to repeated BlockchainSpec
  • RestartNodeRequest's root_data_dir was removed
  • AddNodeRequest's StartRequest field was replaced with fields exec_path, node_config, chain_configs

The most expected changes from client's golang code are:

  • Replace rpcpb.ClusterInfo.CustomVms with rpcpb.ClusterInfo.CustomChains
  • Replace rpcpb.CustomVmInfo with rpcpb.CustomChainInfo
  • Replace rpcpb.CustomChainInfo.VmName with rpcpb.CustomChainInfo.ChainName
  • Repalce rpcpb.CustomChainInfo.BlochainId with rpcpb.CustomChainInfo.ChainId
  • Replace rpcpb.ClusterInfo.CustomVmsHealthy with rpcpb.ClusterInfo.CustomChainsHealthy
  • In client Start calls, Replace client.WithCustomVMs with client.WithBlockchainSpecs and pass a []*rpcpb.BlockchainSpec instead of a map[string]string, eg:
client.WithBlockchainSpecs([]*rpcpb.BlockchainSpec{
    {
        VmName: vmName,
        Genesis: genesisPath,
    },
})

The most expected changes from control command usage are:

  • replace start's flag custom-vms with blockchain-specs and change json content from to be slice [(VM name, genesis file path)]
  • create-blockchains now receives blockchain specs as unique positional argument, instead of a flag
  • remove-node now receives node name as unique positional argument, instead of a flag
  • add-node now receives node name as unique positional argument, instead of a flag
  • restart-node now receives node name as unique positional argument, instead of a flag
  • attach-peer now receives node name as unique positional argument, instead of a flag
  • send-outbound-message now receives node name as unique positional argument, instead of a flag

Changelog

  • 1db7295 Merge pull request #232 from ava-labs/bump-go-1.18
  • c84176a bump go version
  • 00543ab Merge pull request #221 from ava-labs/216-cleanup-control
  • bff9eda Merge pull request #231 from ava-labs/revert-229-remove-buildir-flag-reloaded
  • 4d824af Revert "Remove buildir flag reloaded"
  • 391f8e6 Merge branch '216-cleanup-control' of github.com:ava-labs/avalanche-network-runner-local into 216-cleanup-control
  • 382baf8 addressed PR comments
  • 8bbe155 Merge branch 'main' into 216-cleanup-control
  • de45ae7 first iteration