v1.2.0
Some breaking changes were made to RPC protocol definition:
ClusterInfo
's fieldcustom_vms_healthy
renamed tocustom_chains_healthy
ClusterInfo
's fieldcustom_vms
renamed tocustom_chains
, and type changed frommap<string, CustomVmInfo>
tomap<string, CustomChainInfo>
CustomVmInfo
renamed toCustomChainInfo
CustomChainInfo
's fieldvm_name
renamed tochain_name
CustomChainInfo
's fieldblockchain_id
renamed tochain_id
StartRequest
's fieldcustom_vms
renamed toblockchain_specs
, and type changed frommap<string, string>
torepeated BlockchainSpec
RestartNodeRequest
'sroot_data_dir
was removedAddNodeRequest
'sStartRequest
field was replaced with fieldsexec_path
,node_config
,chain_configs
The most expected changes from client's golang code are:
- Replace
rpcpb.ClusterInfo.CustomVms
withrpcpb.ClusterInfo.CustomChains
- Replace
rpcpb.CustomVmInfo
withrpcpb.CustomChainInfo
- Replace
rpcpb.CustomChainInfo.VmName
withrpcpb.CustomChainInfo.ChainName
- Repalce
rpcpb.CustomChainInfo.BlochainId
withrpcpb.CustomChainInfo.ChainId
- Replace
rpcpb.ClusterInfo.CustomVmsHealthy
withrpcpb.ClusterInfo.CustomChainsHealthy
- In client
Start
calls, Replaceclient.WithCustomVMs
withclient.WithBlockchainSpecs
and pass a[]*rpcpb.BlockchainSpec
instead of amap[string]string
, eg:
client.WithBlockchainSpecs([]*rpcpb.BlockchainSpec{
{
VmName: vmName,
Genesis: genesisPath,
},
})
The most expected changes from control
command usage are:
- replace
start
's flagcustom-vms
withblockchain-specs
and changejson
content from to be slice [(VM name, genesis file path)] create-blockchains
now receives blockchain specs as unique positional argument, instead of a flagremove-node
now receives node name as unique positional argument, instead of a flagadd-node
now receives node name as unique positional argument, instead of a flagrestart-node
now receives node name as unique positional argument, instead of a flagattach-peer
now receives node name as unique positional argument, instead of a flagsend-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