Runtime 900

Je propose le runtime 900 que je n’ai pas pu publier via la CI parce qu’elle ne le permet pas encore en l’état, mais que j’ai compilé localement avec srtool, voici la sortie avec toutes les infos nécessaire :

{
    "gen": "srtool v0.17.0",
    "src": "git",
    "version": "1.0.0",
    "commit": "8e217477fa104b82cb868eb3cfe0b6f17f903662",
    "tag": "gdev-803",
    "branch": "network/gdev-800",
    "rustc": "rustc 1.81.0 (eeb90cda1 2024-09-04)",
    "pkg": "gdev-runtime",
    "tmsp": "2024-11-29T20:17:06Z",
    "size": "678996",
    "prop": "0x36648907abcf1e7eb354198f50d86fdb1c746652b636f0655011e153bd87b46d",
    "authorize_upgrade_prop": "0xb3d472865c9ea8f501e392752fd0543ddff7933149f179220b2693edaaf62f05",
    "ipfs": "QmQpHQScoGyi4eTLTTsE6sUJ599oGzEwHfE1Agv52opzq7",
    "sha256": "0x30933311b6f8920ad6511b7ba741ea3522ed0d9a8bd82f44f84848dc8e51a77a",
    "wasm": "runtime/gdev/target/srtool/release/wbuild/gdev-runtime/gdev_runtime.compact.compressed.wasm",
    "info": {
        "generator": {
            "name": "srtool",
            "version": "0.17.0"
        },
        "src": "git",
        "version": "1.0.0",
        "git": {
            "commit": "8e217477fa104b82cb868eb3cfe0b6f17f903662",
            "tag": "",
            "branch": "network/gdev-800"
        },
        "rustc": "rustc 1.81.0 (eeb90cda1 2024-09-04)",
        "pkg": "gdev-runtime",
        "profile": "release"
    },
    "context": {
        "package": "gdev-runtime",
        "runtime_dir": "runtime/gdev",
        "docker": {
            "image": "paritytech/srtool",
            "tag": "1.81.0"
        },
        "profile": "release"
    },
    "runtimes": {
        "compact": {
            "tmsp": "2024-11-29T20:16:47Z",
            "size": "2909944",
            "prop": "0x5633d6f290674efa30103aaf06ce2cfb9db7768e2b0b777350bf6d101a93d22b",
            "authorize_upgrade_prop": "0x9cfdde0ca9219644049814a73f9884225c488d718e4efb049280839bb952d8b7",
            "blake2_256": "0xd14488b2d4c23b272d0b2ffb589b63d5dfc57a3ba4a780a00f97475874f28769",
            "ipfs": "QmUvAV1GBV5pheckuZV1Eaf4C7tsNUyadpoerg7yYTs4eC",
            "sha256": "0x79904f823661b07fb73ef3cd2745104239fb2688953cd6deeb8bfd18bd9bb86e",
            "wasm": "runtime/gdev/target/srtool/release/wbuild/gdev-runtime/gdev_runtime.compact.wasm",
            "subwasm": {
                "size": 2909944,
                "compression": {
                    "size_compressed": 2909944,
                    "size_decompressed": 2909944,
                    "compressed": false
                },
                "reserved_meta": [
                    109,
                    101,
                    116,
                    97
                ],
                "reserved_meta_valid": true,
                "metadata_version": 14,
                "core_version": {
                    "specName": "gdev",
                    "implName": "duniter-gdev",
                    "authoringVersion": 1,
                    "specVersion": 900,
                    "implVersion": 1,
                    "apis": [
                        [
                            "0x687ad44ad37f03c2",
                            1
                        ],
                        [
                            "0xcbca25e39f142387",
                            2
                        ],
                        [
                            "0xdf6acb689907609b",
                            5
                        ],
                        [
                            "0x37e397fc7c91f5e4",
                            2
                        ],
                        [
                            "0x40fe3ad401f8959a",
                            6
                        ],
                        [
                            "0xd2bc9897eed08f15",
                            3
                        ],
                        [
                            "0xf78b278be53f454c",
                            2
                        ],
                        [
                            "0xab3c0572291feb8b",
                            1
                        ],
                        [
                            "0xed99c5acb25eedf5",
                            3
                        ],
                        [
                            "0xbc9d89904f5b923f",
                            1
                        ],
                        [
                            "0x37c8bb1350a9a2a8",
                            4
                        ],
                        [
                            "0xfbc577b9d747efd6",
                            1
                        ]
                    ],
                    "transactionVersion": 1,
                    "stateVersion": 1
                },
                "proposal_hash": "0x5633d6f290674efa30103aaf06ce2cfb9db7768e2b0b777350bf6d101a93d22b",
                "parachain_authorize_upgrade_hash": "0x9cfdde0ca9219644049814a73f9884225c488d718e4efb049280839bb952d8b7",
                "ipfs_hash": "QmUvAV1GBV5pheckuZV1Eaf4C7tsNUyadpoerg7yYTs4eC",
                "blake2_256": "0xd14488b2d4c23b272d0b2ffb589b63d5dfc57a3ba4a780a00f97475874f28769"
            }
        },
        "compressed": {
            "tmsp": "2024-11-29T20:13:47Z",
            "size": "678996",
            "prop": "0x36648907abcf1e7eb354198f50d86fdb1c746652b636f0655011e153bd87b46d",
            "authorize_upgrade_prop": "0xb3d472865c9ea8f501e392752fd0543ddff7933149f179220b2693edaaf62f05",
            "blake2_256": "0x565169f92b7aa59fd9aec059066104ddda2ae8a600b8a4c4f6723b4f0b9d1092",
            "ipfs": "QmQpHQScoGyi4eTLTTsE6sUJ599oGzEwHfE1Agv52opzq7",
            "sha256": "0x30933311b6f8920ad6511b7ba741ea3522ed0d9a8bd82f44f84848dc8e51a77a",
            "wasm": "runtime/gdev/target/srtool/release/wbuild/gdev-runtime/gdev_runtime.compact.compressed.wasm",
            "subwasm": {
                "size": 678996,
                "compression": {
                    "size_compressed": 678996,
                    "size_decompressed": 2909944,
                    "compressed": true
                },
                "reserved_meta": [
                    109,
                    101,
                    116,
                    97
                ],
                "reserved_meta_valid": true,
                "metadata_version": 14,
                "core_version": {
                    "specName": "gdev",
                    "implName": "duniter-gdev",
                    "authoringVersion": 1,
                    "specVersion": 900,
                    "implVersion": 1,
                    "apis": [
                        [
                            "0x687ad44ad37f03c2",
                            1
                        ],
                        [
                            "0xcbca25e39f142387",
                            2
                        ],
                        [
                            "0xdf6acb689907609b",
                            5
                        ],
                        [
                            "0x37e397fc7c91f5e4",
                            2
                        ],
                        [
                            "0x40fe3ad401f8959a",
                            6
                        ],
                        [
                            "0xd2bc9897eed08f15",
                            3
                        ],
                        [
                            "0xf78b278be53f454c",
                            2
                        ],
                        [
                            "0xab3c0572291feb8b",
                            1
                        ],
                        [
                            "0xed99c5acb25eedf5",
                            3
                        ],
                        [
                            "0xbc9d89904f5b923f",
                            1
                        ],
                        [
                            "0x37c8bb1350a9a2a8",
                            4
                        ],
                        [
                            "0xfbc577b9d747efd6",
                            1
                        ]
                    ],
                    "transactionVersion": 1,
                    "stateVersion": 1
                },
                "proposal_hash": "0x36648907abcf1e7eb354198f50d86fdb1c746652b636f0655011e153bd87b46d",
                "parachain_authorize_upgrade_hash": "0xb3d472865c9ea8f501e392752fd0543ddff7933149f179220b2693edaaf62f05",
                "ipfs_hash": "QmQpHQScoGyi4eTLTTsE6sUJ599oGzEwHfE1Agv52opzq7",
                "blake2_256": "0x565169f92b7aa59fd9aec059066104ddda2ae8a600b8a4c4f6723b4f0b9d1092"
            }
        }
    }
}

La principale modification de ce runtime concerne la règle de distance, il est fait pour fonctionner avec Duniter 0.9.0 : Appel à installer Duniter 0.9.0.

Je propose un runtime upgrade pour le folklore, mais si je vois qu’il y a assez de forgeron en 0.9.0, je forcerai le passage avec sudo, dans le but de pouvoir tester rapidement et publier un correctif si nécessaire.

3 Likes

Suite à Appel à installer Duniter 0.9.1 - #19 by HugoTrentesaux et les seuls trois votes sur Proposition runtime 900, j’accélère le processus et utilise sudo pour forcer le runtime upgrade 900.

# je vérifie que mon runtime local correspond bien à celui que j'ai annoncé
b2sum -b -l 256 runtime/gdev/target/srtool/release/wbuild/gdev-runtime/gdev_runtime.compact.compressed.wasm
565169f92b7aa59fd9aec059066104ddda2ae8a600b8a4c4f6723b4f0b9d1092

J’utilise sudo pour faire system.setCode() :

C’est fait au bloc 4143027, la blockchain semble ne pas s’être arrêtée :stuck_out_tongue:

2 Likes

ouf !! :sweat_smile:

Je vois que tu as utilisé les branches network/gdev-800 et hugo/tmp-0.9.1.
La branche network/900 était déjà existante. La renommer ou utiliser une branche incrémentée network/gdev-801/810 aurait fait l’affaire.
Il me semble que la CI fonctionne sur le nom de la branche pour bien fonctionner.