J’essaie d’adapter la config genesis du noeud servant aux tests d’intégrations de Gecko.
Je suis sur l’image debug-sha-44b09061
.
Comme Gecko a besoin de gérer des adresses provenant de mnemonic, j’utilise donc des données custom via DUNITER_GENESIS_CONFIG
et DUNITER_GENESIS_DATA
. J’utilise donc la chaîne gdev_dev
pour cela.
Petit détail, le numéro du runtime semble toujours être 0.3.0
, il faudra penser à l’incrémenter duniter-v2s-gecko-tests | 2023-11-18 18:54:13 ✌️ version 0.3.0-unknown
.
Mon soucis est que quel que soit ce que je tente, le noeud démarre sans erreur mais ne créer pas de block, sans me dire pourquoi.
Si je passe en sealing manual, la methode RPC createBlock n’est pas exposé alors qu’elle devrait.
J’ai compris que Alice avait réservé l’index 6, j’ai donc essayé de l’ajouter dans le groupe clique_smiths
et le technical_committee
, ainsi que dans la liste des identités avec sa pubkey et son index, sans succès (pas d’erreur mais pas de mieux).
Le fait que désormais ce soit des timestamps au lieu de numéro de block pour les dates dans le genesis rend les configs de tests moins facile à manipuler, moins reproductible (il faut toujours calculer des timestamps cohérents par rapport au moment de lancement du test), mais je comprends l’intérêt pour les migrations de données Ğ1.
Je pense que si le soucis venait de là, les tests d’initialisations devraient le déceler (super d’ailleurs les logs très détaillés au démarrage!).
J’ai aussi essayé de reprendre les mêmes parameters
que la config gdev fournit dans le dépôt, même résultat.
Voici:
J’imagine que j’ai dû louper quelque chose
Mes logs:
Résumé
duniter-v2s-gecko-tests | Node key file '/var/lib/duniter/node.key' exists.
duniter-v2s-gecko-tests | Node peer ID is '12D3KooWMh72T1jqMBy9qbgRKmP9f8wwQ74kknExQxEDgidZc5A5'.
duniter-v2s-gecko-tests | Starting duniter with parameters: --name gecko_tests --node-key-file /var/lib/duniter/node.key --rpc-cors all --chain gdev_dev -d /var/lib/duniter --unsafe-rpc-external --unsafe-ws-external
duniter-v2s-gecko-tests | 2023-11-18 18:54:13 Duniter
duniter-v2s-gecko-tests | 2023-11-18 18:54:13 ✌️ version 0.3.0-unknown
duniter-v2s-gecko-tests | 2023-11-18 18:54:13 ❤️ by Axiom-Team Developers <https://axiom-team.fr>, 2021-2023
duniter-v2s-gecko-tests | 2023-11-18 18:54:13 📋 Chain specification: Development
duniter-v2s-gecko-tests | 2023-11-18 18:54:13 🏷 Node name: gecko_tests
duniter-v2s-gecko-tests | 2023-11-18 18:54:13 👤 Role: FULL
duniter-v2s-gecko-tests | 2023-11-18 18:54:13 💾 Database: ParityDb at /var/lib/duniter/chains/gdev/paritydb/full
duniter-v2s-gecko-tests | 2023-11-18 18:54:13 ⛓ Native runtime: gdev-600 (duniter-gdev-1.tx1.au1)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Smith] 7 (5FeggKqw2AbnGZF9Y9WPM2QTgzENS3Hit94Ewgmzdg5a3LNa - test1)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Smith] 1 (5E4i8vcNjnrDp21Sbnp32WHm2gz8YP3GGFwmdpfg5bHd8Whb - test2)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Smith] 2 (5FhTLzXLNBPmtXtDBFECmD7fvKmTtTQDtvBTfVr97tachA1p - test3)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Smith] 3 (5DXJ4CusmCg8S1yF6JGVn4fxgk5oFx42WctXqHZ17mykgje5 - test4)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Smith] 6 (5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY - Alice)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Authority] 1 : offline (5E4i8vcNjnrDp21Sbnp32WHm2gz8YP3GGFwmdpfg5bHd8Whb - test2)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Authority] 2 : offline (5FhTLzXLNBPmtXtDBFECmD7fvKmTtTQDtvBTfVr97tachA1p - test3)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Authority] 3 : offline (5DXJ4CusmCg8S1yF6JGVn4fxgk5oFx42WctXqHZ17mykgje5 - test4)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Authority] 6 : online (5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY - Alice)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 [Authority] 7 : offline (5FeggKqw2AbnGZF9Y9WPM2QTgzENS3Hit94Ewgmzdg5a3LNa - test1)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 prepared genesis with:
duniter-v2s-gecko-tests | - 6 accounts (6 identities, 0 simple wallets)
duniter-v2s-gecko-tests | - 6 total identities (6 active, 0 inactive)
duniter-v2s-gecko-tests | - 5 smiths
duniter-v2s-gecko-tests | - 1 initial online authorities
duniter-v2s-gecko-tests | - 18 certifications
duniter-v2s-gecko-tests | - 20 smith certifications
duniter-v2s-gecko-tests | - 4 members in technical committee
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 currency parameters:
duniter-v2s-gecko-tests | - existential deposit: 100 ĞD
duniter-v2s-gecko-tests | - currency decimals: 2
duniter-v2s-gecko-tests | - membership validity: 73 days
duniter-v2s-gecko-tests | - certification period: 1 days
duniter-v2s-gecko-tests | - certification validity duration: 146 days
duniter-v2s-gecko-tests | - smith membership validity: 73 days
duniter-v2s-gecko-tests | - smith certification validity: 146 days
duniter-v2s-gecko-tests | - required certifications: 3
duniter-v2s-gecko-tests | - smith required certifications: 3
duniter-v2s-gecko-tests | - max certifications by issuer: 100
duniter-v2s-gecko-tests | - money growth rate: 4.88% every 7 days
duniter-v2s-gecko-tests | - UD creation period: 1 days
duniter-v2s-gecko-tests | - distance percent of required referees: 80%
duniter-v2s-gecko-tests | - distance max depth: 5
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 parameter `membership_period` (73 days) is different from Ğ1's (365.25 days)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 parameter `cert_period` (1 days) is different from Ğ1's (5 days)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 parameter `cert_validity_period` (146 days) is different from Ğ1's (730.5 days)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 parameter `min_cert` value (3) is different from Ğ1 value (5)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 parameter `ud_reeval_period` value (7 days) is different from Ğ1 value (182.625 days)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 🔨 Initializing Genesis block/state (state: 0xdce1…d05d, header-hash: 0x47aa…8e5a)
duniter-v2s-gecko-tests | 2023-11-18 18:54:14 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 👶 Creating empty BABE epoch changes on what appears to be first startup.
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 Using default protocol ID "sup" because none is configured in the chain specs
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 🏷 Local node identity is: 12D3KooWMh72T1jqMBy9qbgRKmP9f8wwQ74kknExQxEDgidZc5A5
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 💻 Operating system: linux
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 💻 CPU architecture: x86_64
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 💻 Target environment: gnu
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 💻 CPU: AMD Ryzen 7 3700X 8-Core Processor
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 💻 CPU cores: 8
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 💻 Memory: 31987MB
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 💻 Kernel: 5.15.0-88-generic
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 💻 Linux distribution: Debian GNU/Linux 11 (bullseye)
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 💻 Virtual machine: no
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 📦 Highest known block at #0
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 〽️ Prometheus exporter started at 127.0.0.1:9615
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 Running JSON-RPC HTTP server: addr=0.0.0.0:9933, allowed origins=["*"]
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 Running JSON-RPC WS server: addr=0.0.0.0:9944, allowed origins=["*"]
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 ***** Duniter has fully started *****
duniter-v2s-gecko-tests | 2023-11-18 18:54:15 Accepting new connection 1/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:16 Accepting new connection 2/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:17 Accepting new connection 3/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:17 Accepting new connection 4/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:17 Accepting new connection 5/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:17 Accepting new connection 6/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:18 Accepting new connection 7/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:18 Accepting new connection 8/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:19 Accepting new connection 9/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:19 Accepting new connection 10/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:20 💤 Idle (0 peers), best: #0 (0x47aa…8e5a), finalized #0 (0x47aa…8e5a), ⬇ 0 ⬆ 0
duniter-v2s-gecko-tests | 2023-11-18 18:54:20 Accepting new connection 11/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:21 Accepting new connection 12/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:21 Accepting new connection 13/100
duniter-v2s-gecko-tests | 2023-11-18 18:54:25 💤 Idle (0 peers), best: #0 (0x47aa…8e5a), finalized #0 (0x47aa…8e5a), ⬇ 0 ⬆ 0
duniter-v2s-gecko-tests | 2023-11-18 18:54:30 💤 Idle (0 peers), best: #0 (0x47aa…8e5a), finalized #0 (0x47aa…8e5a), ⬇ 0 ⬆ 0
duniter-v2s-gecko-tests | 2023-11-18 18:54:35 💤 Idle (0 peers), best: #0 (0x47aa…8e5a), finalized #0 (0x47aa…8e5a), ⬇ 0 ⬆ 0
J’ai essayé de commencer les index à 0 ou 1, d’où la légère incohérence dans cet exemple, mais cela ne semble rien changer.
Bravo en tout cas pour tout ce travail accompli, ça a bien changé depuis la dernière fois que j’y avait mis les pattes.