Mais oui c’était juste ça, merci !!
En plus on a un bol absolu, car l’identité n°1 alphabétiquement dans la Ğ1, c’est 1000i100
mdr
Donc si je résume pour @1000i100 , pour fix le bug, il suffit de te rajouter dans la toile forgerons, tu n’a pas le choix, sinon on peut pas migrer la Ğ1, c’est quasiment écrit dans le code mdr
Tu es notre Alice
de la Ğ1.
Donc le fix est coté py-g1-migration:
smiths.update({'1000i100': {'certs': ['elois', 'HugoTrentesaux', 'vit', 'poka']}})
→
"1000i100": {
"certs": [
"elois",
"HugoTrentesaux",
"vit",
"poka"
]
}
→
$ rm -rf data/chains/ && docker compose up
[+] Running 1/0
⠿ Container duniter-v2s Created 0.0s
Attaching to duniter-v2s
duniter-v2s | Starting duniter with parameters: --name duniter_local --dev -d /var/lib/duniter --unsafe-rpc-external --unsafe-ws-external
duniter-v2s | 2022-10-07 22:20:22 Duniter
duniter-v2s | 2022-10-07 22:20:22 ✌️ version 0.3.0-386e4d846c7
duniter-v2s | 2022-10-07 22:20:22 ❤️ by Axiom-Team Developers <https://axiom-team.fr>, 2021-2022
duniter-v2s | 2022-10-07 22:20:22 📋 Chain specification: Development
duniter-v2s | 2022-10-07 22:20:22 🏷 Node name: duniter_local
duniter-v2s | 2022-10-07 22:20:22 👤 Role: AUTHORITY
duniter-v2s | 2022-10-07 22:20:22 💾 Database: ParityDb at /var/lib/duniter/chains/gdev/paritydb/full
duniter-v2s | 2022-10-07 22:20:22 ⛓ Native runtime: gdev-300 (duniter-gdev-1.tx1.au1)
duniter-v2s | 2022-10-07 22:20:27 🔨 Initializing Genesis block/state (state: 0xc9f0…2757, header-hash: 0x3774…66ab)
duniter-v2s | 2022-10-07 22:20:28 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
duniter-v2s | 2022-10-07 22:20:29 👶 Creating empty BABE epoch changes on what appears to be first startup.
duniter-v2s | 2022-10-07 22:20:29 Using default protocol ID "sup" because none is configured in the chain specs
duniter-v2s | 2022-10-07 22:20:29 🏷 Local node identity is: 12D3KooWDGfNB6Cit5YHx1ExWMYWvBdYdbfQXdSKzvyfEz9yJ2bj
duniter-v2s | 2022-10-07 22:20:29 👶 Starting BABE Authorship worker
duniter-v2s | 2022-10-07 22:20:30 💻 Operating system: linux
duniter-v2s | 2022-10-07 22:20:30 💻 CPU architecture: x86_64
duniter-v2s | 2022-10-07 22:20:30 💻 Target environment: gnu
duniter-v2s | 2022-10-07 22:20:30 💻 CPU: AMD Ryzen 7 3700X 8-Core Processor
duniter-v2s | 2022-10-07 22:20:30 💻 CPU cores: 8
duniter-v2s | 2022-10-07 22:20:30 💻 Memory: 32044MB
duniter-v2s | 2022-10-07 22:20:30 💻 Kernel: 5.15.0-43-generic
duniter-v2s | 2022-10-07 22:20:30 💻 Linux distribution: Debian GNU/Linux 10 (buster)
duniter-v2s | 2022-10-07 22:20:30 💻 Virtual machine: no
duniter-v2s | 2022-10-07 22:20:30 📦 Highest known block at #0
duniter-v2s | 2022-10-07 22:20:30 〽️ Prometheus exporter started at 127.0.0.1:9615
duniter-v2s | 2022-10-07 22:20:30 Running JSON-RPC HTTP server: addr=0.0.0.0:9933, allowed origins=None
duniter-v2s | 2022-10-07 22:20:30 Running JSON-RPC WS server: addr=0.0.0.0:9944, allowed origins=None
duniter-v2s | 2022-10-07 22:20:30 ***** Duniter has fully started *****
duniter-v2s | 2022-10-07 22:20:30 🙌 Starting consensus session on top of parent 0x3774b04331fd44538c8e0574622bc68afe69b7ed91ca0b8c81225a77315a66ab
duniter-v2s | 2022-10-07 22:20:30 🎁 Prepared block for proposing at 1 (8 ms) [hash: 0x0b940f27ea4f9d98448b5ffacecef9e5df4c9468fd42814e353635bc7ae8690e; parent_hash: 0x3774…66ab; extrinsics (1): [0xaaba…1240]]
duniter-v2s | 2022-10-07 22:20:30 🔖 Pre-sealed block for proposal at 1. Hash now 0x0beb699f048426a4f3b690aed73e8f309c0079c45b2e0949b8c64e2f803f809c, previously 0x0b940f27ea4f9d98448b5ffacecef9e5df4c9468fd42814e353635bc7ae8690e.
duniter-v2s | 2022-10-07 22:20:30 👶 New epoch 0 launching at block 0x0beb…809c (block slot 277530205 >= start slot 277530205).
duniter-v2s | 2022-10-07 22:20:30 👶 Next epoch starts at slot 277530805
duniter-v2s | 2022-10-07 22:20:30 ✨ Imported #1 (0x0beb…809c)
duniter-v2s | 2022-10-07 22:20:35 💤 Idle (0 peers), best: #1 (0x0beb…809c), finalized #0 (0x3774…66ab), ⬇ 0 ⬆ 0
duniter-v2s | 2022-10-07 22:20:36 🙌 Starting consensus session on top of parent 0x0beb699f048426a4f3b690aed73e8f309c0079c45b2e0949b8c64e2f803f809c
duniter-v2s | 2022-10-07 22:20:36 🎁 Prepared block for proposing at 2 (3 ms) [hash: 0x9fd10c63d3a2ac37a71b42a2206989cad7883ec3bb695d337e595a7030da6994; parent_hash: 0x0beb…809c; extrinsics (1): [0x7273…de88]]
duniter-v2s | 2022-10-07 22:20:36 🔖 Pre-sealed block for proposal at 2. Hash now 0xf18b30a8b82e3f70013268293b6b4fb1bd6e2881f04bc01086bb038901eabdca, previously 0x9fd10c63d3a2ac37a71b42a2206989cad7883ec3bb695d337e595a7030da6994.
duniter-v2s | 2022-10-07 22:20:36 ✨ Imported #2 (0xf18b…bdca)
duniter-v2s | 2022-10-07 22:20:40 💤 Idle (0 peers), best: #2 (0xf18b…bdca), finalized #0 (0x3774…66ab), ⬇ 0 ⬆ 0
duniter-v2s | 2022-10-07 22:20:42 🙌 Starting consensus session on top of parent 0xf18b30a8b82e3f70013268293b6b4fb1bd6e2881f04bc01086bb038901eabdca
duniter-v2s | 2022-10-07 22:20:42 🎁 Prepared block for proposing at 3 (4 ms) [hash: 0x2d479de798b1b2ef8323da3643b06287e5352c3fde17df9de276897a59e3faf5; parent_hash: 0xf18b…bdca; extrinsics (1): [0x747f…b930]]
duniter-v2s | 2022-10-07 22:20:42 🔖 Pre-sealed block for proposal at 3. Hash now 0xa50dd48cd420139e25841a4cf9ebfc0eae63d30e63882dd3c0592b7488ce7572, previously 0x2d479de798b1b2ef8323da3643b06287e5352c3fde17df9de276897a59e3faf5.
duniter-v2s | 2022-10-07 22:20:42 ✨ Imported #3 (0xa50d…7572)
duniter-v2s | 2022-10-07 22:20:45 💤 Idle (0 peers), best: #3 (0xa50d…7572), finalized #0 (0x3774…66ab), ⬇ 0 ⬆ 0
duniter-v2s | 2022-10-07 22:20:48 🙌 Starting consensus session on top of parent 0xa50dd48cd420139e25841a4cf9ebfc0eae63d30e63882dd3c0592b7488ce7572
duniter-v2s | 2022-10-07 22:20:48 🎁 Prepared block for proposing at 4 (4 ms) [hash: 0x115496e52c130875bdcf7e2df5c56c31c585ebad2bddedcbe8b626a3844b8638; parent_hash: 0xa50d…7572; extrinsics (1): [0x205f…af66]]
duniter-v2s | 2022-10-07 22:20:48 🔖 Pre-sealed block for proposal at 4. Hash now 0xf95a391ed460ab53383b10abfb67ab33803175a5c7b11357a343bb2a67deadf6, previously 0x115496e52c130875bdcf7e2df5c56c31c585ebad2bddedcbe8b626a3844b8638.
J’ai une (quasi) ĞTest v2s en local !
Vous pouvez essayer: https://git.duniter.org/pokapow/py-g1-migration/-/raw/master/gtest.json
Je rappel que:
- Toutes les certifications sont présentes, même les périmés, dû à l’indexation incrémental de DataJune
- Il y a 31 comptes en moins car trop récents, dû à DataJune pas à jours
- Les compteurs de dates de certifications sont tous à 0
- Il n’y a que les membres actuels (moins 31…), pas les simples portefeuilles
- Les nom d’identité révoqués ne sont pas pris en comptes, donc vous pourrez recréer une identité précédemment révoqué.
Pour le moment je ne vois pas d’autres points.
Pour la suite, comme le dis @elois maintenant il faudrait sortir les données complètes de Dex directement, avec les dates de certifications, dans un json simple que je peux reparser derrière pour formater le final.