升級提案內容模板
升級包括三部分內容,網關客戶端升級、主鏈節點升級、APP升級。網關和主鏈分為linux和windows兩個版本,只支持64位系統。 升級文件包需要進行sha512編碼,然後按照給定的格式拼接到下載鏈接上,用於文件的有效性校驗。 upgrade_script 腳本適用於升級除客戶端外需要額外處理的數據或程序。
執行sha512命令:
sha512sum file
#output:
27a1ed5d502d4148f837f2a74c6d87b574ce52391fda253618e60486e0304c5b file
網關升級提案內容:
⚠️注意 :
網關升級提案的版本号需要和 `gateway` 、以及 `app.asar` 保持一致(日期多0不影响比较)
壓縮包內可存放以下檔案(windows)
作業系統平臺 | 路徑 | 可選/必選 | 說明 |
---|---|---|---|
windows | resources/app.asar |
必選 | 關聯版本 |
windows | resources/gateway/gateway.exe |
必選 | 閘道後端 |
windows | resources/gateway/cosmovisor.exe |
可選 | 鏈管理器 |
windows | resources/gateway/chat/chat.exe |
可選 | 通訊後端 |
windows | resources/gateway/servm/servm.exe |
可選 | 服務管理器 |
壓縮包內可存放以下檔案(linux)
作業系統平臺 | 路徑 | 可選/必選 | 說明 |
---|---|---|---|
linux | resources/app.asar |
必選 | 關聯版本 |
linux | resources/gateway/gateway |
必選 | 閘道後端 |
linux | resources/gateway/cosmovisor |
可選 | 鏈管理器 |
linux | resources/gateway/chat/chat |
可選 | 通訊後端 |
linux | resources/gateway/servm/servm |
可選 | 服務管理器 |
{
"gateway": {
"version": "22.09.07",
"binaries": {
"linux/amd64": {
"url": "https://example.com/daodst.zip?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash":"aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
},
"windows/amd64": {
"url": "https://example.com/daodst.zip?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash":"aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
}
}
}
}
主鏈節點升級提案內容:
{
"blockchain": {
"version": "22.10.08",
"binaries": {
"linux/amd64": {
"url": "https://example.com/daodst.zip?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash":"aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
},
"windows/amd64": {
"url": "https://example.com/daodst.zip?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash":"aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
}
}
}
}
APP升級提案內容:
{
"app": {
"version": "22.09.07",
"binaries": {
"android": {
"url": "https://example.com/daodst.apk?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash":"aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
}
}
}
}
支持一次提案升級多個程序:
{
"gateway": {
"version": "22.09.07",
"binaries": {
"linux/amd64": {
"url": "https://example.com/daodst.zip?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash": "aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
},
"windows/amd64": {
"url": "https://example.com/daodst.zip?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash": "aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
}
}
},
"blockchain": {
"version": "22.10.08",
"binaries": {
"linux/amd64": {
"url": "https://example.com/daodst.zip?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash": "aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
},
"windows/amd64": {
"url": "https://example.com/daodst.zip?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash": "aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
}
}
},
"app": {
"version": "22.09.07",
"binaries": {
"android": {
"url": "https://example.com/daodst.apk?checksum=sha512:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"hash": "aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f",
"size": 123877163
}
}
}
}