Je me suis rendu compte ce soir en rentrant du boulot que mes 2 nœuds Ğ1 étaient désynchronisés, je vois que c’est aussi le cas de @jytou @shepeng @Jokeur @PiNguyen @Attilax @shaolinux et quelques autres dont je ne connais pas le pseudo sur ce forum (certains ne sont peut-être même pas inscrits sur ce forum ?).
Le fork a perduré plus de 100 blocs, donc il ne pourra pas être résolu automatiquement. Les membres désynchronisés doivent effectuer une resync manuelle. Capture de l’état du réseau :
Le fork s’est produit au bloc #232587 (le dernier bloc commun étant le #232586).
La seule différence c’est que la branche qui l’a emportée a exclue l’identité DE51TW7H1pi9KrhimQ7GKvXMbk6kMHg9yR8VJ2zTBZ3M.
Avant de resync mon nœud g1.librelois.fr j’ai zieuté les logs, voici ce que j’ai trouvé :
2019-06-27T19:59:26+02:00 - info: SIDE Block #232752-0000030E added to the blockchain in 1 ms
2019-06-27T19:59:26+02:00 - info: Block resolution: 6 potential blocks after current#232585...
2019-06-27T19:59:26+02:00 - error: Error: ruleNumber
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:62:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T19:59:26+02:00 - error: Error: ruleNumber
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:62:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T19:59:26+02:00 - error: Error: ruleNumber
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:62:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T19:59:26+02:00 - error: Error: ruleNumber
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:62:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T19:59:26+02:00 - error: Error: ruleNumber
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:62:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T19:59:26+02:00 - error: Error: ruleNumber
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:62:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T19:59:26+02:00 - info: Fork resolution: 121 potential block(s) found...
2019-06-27T19:59:26+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:26+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:26+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:26+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:26+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:26+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:27+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:27+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:27+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:27+02:00 - info: Fork resolution: block #232586-000004A5 is known as incorrect. Skipping.
2019-06-27T19:59:27+02:00 - info: Fork resolution: 8 potential suite(s) found...
2019-06-27T19:59:27+02:00 - info: Fork resolution: HEAD = block#232585
2019-06-27T19:59:27+02:00 - info: Fork resolution: suite 1/8 (-> #232589-000000) revert to fork point block#232583
2019-06-27T19:59:27+02:00 - error: Unhandled rejection: BLOCK_TO_REVERT_NOT_FOUND
2019-06-27T19:59:27+02:00 - error: BLOCK_TO_REVERT_NOT_FOUND
Mon nœud s’est interrompu la, je ne sais pas si c’est normal ou non. Je viens de le relancer a l’instant sans resync pour voir ce que me disent les logs sur le bloc de fork :
2019-06-27T20:23:13+02:00 - info: Block resolution: 6 potential blocks after current#232585...
2019-06-27T20:23:13+02:00 - error: Error: ruleMedianTime
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:84:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T20:23:13+02:00 - error: Error: ruleMedianTime
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:84:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T20:23:13+02:00 - error: Error: ruleMedianTime
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:84:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T20:23:13+02:00 - error: Error: ruleMedianTime
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:84:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T20:23:13+02:00 - info: Block #232586 added to the blockchain in 87 ms
2019-06-27T20:23:13+02:00 - info: Block resolution: 3 potential blocks after current#232586...
2019-06-27T20:23:13+02:00 - error: Error: ruleToBeKickedArePresent
at Function.checkBlock (/opt/duniter/app/lib/blockchain/DuniterBlockchain.js:179:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
2019-06-27T20:23:13+02:00 - info: Block #232587 added to the blockchain in 35 ms
2019-06-27T20:23:13+02:00 - info: Block resolution: 1 potential blocks after current#232587...
2019-06-27T20:23:13+02:00 - info: Block #232588 added to the blockchain in 100 ms
2019-06-27T20:23:13+02:00 - info: Block resolution: 1 potential blocks after current#232588...
2019-06-27T20:23:14+02:00 - info: Block #232589 added to the blockchain in 148 ms
2019-06-27T20:23:14+02:00 - info: Block resolution: 0 potential blocks after current#232589...
2019-06-27T20:23:14+02:00 - info: Fork resolution: 109 potential block(s) found...
2019-06-27T20:23:15+02:00 - info: Fork resolution: 9 potential suite(s) found...
2019-06-27T20:23:15+02:00 - info: Fork resolution: HEAD = block#232589
2019-06-27T20:23:15+02:00 - info: Fork resolution: suite 1/9 (-> #232686-000003) revert to fork point block#232586
2019-06-27T20:23:18+02:00 - info: Fork resolution: suite 1/9 REFUSED block#232587: ruleToBeKickedArePresent
2019-06-27T20:23:18+02:00 - info: Block #232587 added to the blockchain in 32 ms
2019-06-27T20:23:18+02:00 - info: Block #232588 added to the blockchain in 17 ms
2019-06-27T20:23:19+02:00 - info: Block #232589 added to the blockchain in 185 ms
2019-06-27T20:23:19+02:00 - info: Fork resolution: suite 2/9 (-> #232686-000006) revert to fork point block#232586
2019-06-27T20:23:22+02:00 - info: Fork resolution: suite 2/9 REFUSED block#232587: ruleToBeKickedArePresent
2019-06-27T20:23:22+02:00 - info: Block #232587 added to the blockchain in 73 ms
2019-06-27T20:23:22+02:00 - info: Block #232588 added to the blockchain in 43 ms
2019-06-27T20:23:23+02:00 - info: Block #232589 added to the blockchain in 626 ms
2019-06-27T20:23:23+02:00 - info: Fork resolution: suite 3/9 (-> #232672-000009) revert to fork point block#232586
2019-06-27T20:23:25+02:00 - info: Fork resolution: suite 3/9 REFUSED block#232587: ruleToBeKickedArePresent
2019-06-27T20:23:25+02:00 - info: Block #232587 added to the blockchain in 44 ms
2019-06-27T20:23:25+02:00 - info: Block #232588 added to the blockchain in 31 ms
2019-06-27T20:23:26+02:00 - info: Block #232589 added to the blockchain in 114 ms
2019-06-27T20:23:26+02:00 - info: Fork resolution: suite 4/9 (-> #232655-000007) revert to fork point block#232586
2019-06-27T20:23:28+02:00 - info: Fork resolution: suite 4/9 REFUSED block#232587: ruleToBeKickedArePresent
2019-06-27T20:23:28+02:00 - info: Block #232587 added to the blockchain in 23 ms
2019-06-27T20:23:28+02:00 - info: Block #232588 added to the blockchain in 21 ms
2019-06-27T20:23:29+02:00 - info: Block #232589 added to the blockchain in 157 ms
2019-06-27T20:23:29+02:00 - info: Fork resolution: suite 5/9 (-> #232641-000000) revert to fork point block#232586
2019-06-27T20:23:32+02:00 - info: Fork resolution: suite 5/9 REFUSED block#232587: ruleToBeKickedArePresent
2019-06-27T20:23:32+02:00 - info: Block #232587 added to the blockchain in 54 ms
2019-06-27T20:23:32+02:00 - info: Block #232588 added to the blockchain in 36 ms
2019-06-27T20:23:32+02:00 - info: Block #232589 added to the blockchain in 101 ms
2019-06-27T20:23:32+02:00 - info: Fork resolution: suite 6/9 (-> #232634-000005) revert to fork point block#232586
2019-06-27T20:23:35+02:00 - info: Fork resolution: suite 6/9 REFUSED block#232587: ruleToBeKickedArePresent
2019-06-27T20:23:36+02:00 - info: Block #232587 added to the blockchain in 35 ms
2019-06-27T20:23:36+02:00 - info: Block #232588 added to the blockchain in 68 ms
2019-06-27T20:23:36+02:00 - info: Block #232589 added to the blockchain in 111 ms
2019-06-27T20:23:36+02:00 - info: Fork resolution: suite 7/9 (-> #232624-000002) revert to fork point block#232586
2019-06-27T20:23:39+02:00 - info: Fork resolution: suite 7/9 REFUSED block#232587: ruleToBeKickedArePresent
2019-06-27T20:23:39+02:00 - info: Block #232587 added to the blockchain in 53 ms
2019-06-27T20:23:39+02:00 - info: Block #232588 added to the blockchain in 24 ms
2019-06-27T20:23:39+02:00 - info: Block #232589 added to the blockchain in 108 ms
2019-06-27T20:23:39+02:00 - info: Fork resolution: suite 8/9 (-> #232613-000002) revert to fork point block#232586
2019-06-27T20:23:43+02:00 - info: Fork resolution: suite 8/9 REFUSED block#232587: ruleToBeKickedArePresent
2019-06-27T20:23:44+02:00 - info: Block #232587 added to the blockchain in 56 ms
2019-06-27T20:23:44+02:00 - info: Block #232588 added to the blockchain in 35 ms
2019-06-27T20:23:44+02:00 - info: Block #232589 added to the blockchain in 116 ms
2019-06-27T20:23:44+02:00 - info: Fork resolution: suite 9/9 (-> #232609-000002) revert to fork point block#232586
2019-06-27T20:23:47+02:00 - info: Fork resolution: suite 9/9 REFUSED block#232587: ruleToBeKickedArePresent
2019-06-27T20:23:47+02:00 - info: Block #232587 added to the blockchain in 45 ms
2019-06-27T20:23:47+02:00 - info: Block #232588 added to the blockchain in 33 ms
2019-06-27T20:23:48+02:00 - info: Block #232589 added to the blockchain in 122 ms
2019-06-27T20:23:48+02:00 - info: Web administration accessible at following address: http://localhost:9220
2019-06-27T20:23:48+02:00 - info: WS2P server D9D2zaJoWYWveii1JRYLVK3J4Z7ZH3QczoKrnQeiM6mx listening on 127.0.0.1:20901
Apparemment mon noeud refuse le bloc #232587- 000004A5 :
2019-06-27T20:23:18+02:00 - info: Fork resolution: suite 1/9 REFUSED block#232587: ruleToBeKickedArePresent
Je n’ai pas le temps d’investiguer plus loin, mais ce n’est pas normal que certains nœuds aient refusé le bloc, j’ai pensé à un différentiel de versions, mais on retrouve des nœuds en 1.7.18 et 1.7.19 sur les 2 branches.
@Moul @cgeek j’espère que ce début d’analyse pourra vous servir pour comprendre ce qu’il s’est passé