For better data transmission, we need to upgrade our storage miner to latest version which is incompatible with the old version.
Add configuration:apiendpoint and timeout
apiendpoint: An external ip:port or domain which can be accessed by public network, default value: hostPublicIP:port
Timeout: Default 12 seconds for transaction with chain.
Delete configuration:Boot
Attention: Storage miner will not use public tee nodes on chain if set custom tee nodes in config.yaml
Old Configuration File Schema
Name:miner1Port:15001EarningsAcc:cXxxxStakingAcc:cXxxxMnemonic:expand left depict favorite busy marriage good curtain celery misery fly obscureRpc: - 'ws://127.0.0.1:9944' - 'wss://testnet-rpc.cess.network'UseSpace:1000Workspace:/opt/miner-diskUseCpu:2TeeList: - '127.0.0.1:8080' - '127.0.0.1:8081'Boot: - _dnsaddr.boot-miner-testnet.cess.network
New Configuration File Schema
app:workspace:/opt/miner-diskport:15001maxusespace:1000cores:2apiendpoint:'1.1.1.1:15001'chain:mnemonic:expand left depict favorite busy marriage good curtain celery misery fly obscurestakingacc:nullearningsacc:cXxxxtimeout:12rpcs: - 'ws://127.0.0.1:9944' - 'wss://testnet-rpc.cess.network'
How to Upgrade
For nodeadm user
# step 1: update nodeadm client# https://github.com/CESSProject/cess-nodeadm/releaseswgethttps://github.com/CESSProject/cess-nodeadm/archive/vx.x.x.tar.gztar-xvfvx.x.x.tar.gzcdcess-nodeadm-x.x.xsudo./install.sh--skip-dep# step 2: update related images$sudocesspullimg# step 3: update config file$sudocessconfigset# Start configuring the endpoint to access Storage-Miner from the internet# Do you need to automatically detect extranet address as endpoint? (y/n) need_detect# ...# step 4: restart service$sudocessrestart
For mineradm user
# step 1: update mineradm clientsudowgethttps://github.com/CESSProject/cess-multiminer-admin/archive/latest.tar.gz-O/tmp/latest.tar.gz&&cd/tmpsudotar-xvflatest.tar.gzcdcess-multiminer-admin-latestsudobash./install.sh--no-rmi--retain-config--skip-dep--keep-running# step 2: update related images$sudomineradmpullimg# step 3: update config file# Attention: Storage miner will not use public tee nodes on chain if set custom tee nodes in config.yamlmethod1:edit/opt/cess/mineradm/config.yamlbasedontheoldconfigfile:/opt/cess/mineradm/.old_config.yamlmethod2:usedefaultvalueofapiendpoint/Timeout:cat/opt/cess/mineradm/.old_config.yaml>/opt/cess/mineradm/config.yaml# step 4: generate new config file$sudomineradmconfiggenerate# step 5: restart service$sudomineradmdown$sudomineradminstall