# Finalisation bloquée #2

**URL:** <https://forum.duniter.org/t/finalisation-bloquee-2/12361>\
**Category:** ĞDev\
**Tags:** bug\
**Created:** [19 July 2024 17:00 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361 "2024-07-19T17:00:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![matograine](https://forum.duniter.org/letter_avatar/matograine/32/6_449c533f586939b6e5f246632a46421f.png) [@matograine](https://forum.duniter.org/u/matograine)\
**Post date:** [19 July 2024 17:00 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/1 "2024-07-19T17:00:50Z")

</div>

Bonjour,

Mon noeud tourne et est accessible par [polkadot.js](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fgdev.matograine.fr#/explorer).

Cependant, quand je lui fait une requête current-block par gcli (en local sur le serveur ou en distant depuis mon poste), j’ai cette erreur :

```bash
$ gcli -u wss://gdev.matograine.fr blockchain current-block
## ou en local gcli -u ws://localhost:9944 blockchain current-block
[src/data.rs:194:4] e = Rpc(
    ClientError(
        Call(
            ErrorObject {
                code: ServerError(
                    4003,
                ),
                message: "Client error: UnknownBlock: State already discarded for 0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625",
                data: None,
            },
        ),
    ),
)
Duniter("can not connect to duniter wss://gdev.matograine.fr")

```

Avez-vous une piste ? cela ne semble pas venir du reverse proxy, qui fonctionnait il y a encore trois jours.

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)\
**Post date:** [19 July 2024 18:30 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/2 "2024-07-19T18:30:44Z")

</div>

Intéressant, l’erreur `UnknownBlock: State already discarded for ...` montre que gcli essaye de demander un état qui n’est plus disponible sur ton nœud (je reproduis bien chez moi). Pourtant j’imagine que tu n’as pas mis un `--pruning` plus agressif que le profil “light” qui conserve quand même les états de 256 blocs.

Je regarde donc chez moi :

```auto
gcli -u wss://gdev.coinduf.eu blockchain current-block 
on wss://gdev.coinduf.eu
finalized block	2208389
current block	2296494

```

Il semble que la finalisation a beaucoup de retard, ce qui explique le problème sur ton nœud qui n’est pas un nœud d’archive.

On a donc encore un problème de finalisation, je suis curieux de voir d’où ça vient, mais c’est assez grave, merci de me l’avoir fait découvrir ^^

@bgallois @tuxmain @cgeek il va falloir investiguer le problème de finalisation 😉

---

<div class="post-metadata">

**Author:** ![tuxmain](https://forum.duniter.org/user_avatar/forum.duniter.org/tuxmain/32/6423_2.png) [@tuxmain](https://forum.duniter.org/u/tuxmain)\
**Post date:** [19 July 2024 20:03 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/3 "2024-07-19T20:03:31Z")

</div>

J’ai le même problème, en me connectant à mon nœud ou celui de cgeek. Je ne sais pas quel bloc il essaie de récupérer, peut-être le 0 ? Dans ce cas il faudrait trouver une commande de synchro qui conserve l’état du bloc 0 si ce n’est pas déjà le cas ?

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)\
**Post date:** [20 July 2024 14:33 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/4 "2024-07-20T14:33:26Z")

</div>

> [@tuxmain](#):
>
> quel bloc il essaie de récupérer

Le message d’erreur indique qu’il essaye de récupérer `0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625` soit `2,208,389`, le dernier bloc finalisé. C’est normal, mais ce qui n’est pas normal c’est que la finalisation soit bloquée, et c’est pour ça que je t’ai pingé 😉

---

<div class="post-metadata">

**Author:** ![tuxmain](https://forum.duniter.org/user_avatar/forum.duniter.org/tuxmain/32/6423_2.png) [@tuxmain](https://forum.duniter.org/u/tuxmain)\
**Post date:** [20 July 2024 21:09 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/5 "2024-07-20T21:09:39Z")

</div>

Ah oui je n’avais pas remarqué ça. D’après [substrate node - Finalized block got stuck - Substrate and Polkadot Stack Exchange](https://substrate.stackexchange.com/questions/10354/finalized-block-got-stuck) on peut essayer grandpa/noteStalled, sinon reset.

---

<div class="post-metadata">

**Author:** ![matograine](https://forum.duniter.org/letter_avatar/matograine/32/6_449c533f586939b6e5f246632a46421f.png) [@matograine](https://forum.duniter.org/u/matograine)\
**Post date:** [21 July 2024 04:49 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/6 "2024-07-21T04:49:31Z")

</div>

Dans le fil que tu donnes en référence, le demandeur a dû ‘replace some faulty validators’. De ce que je comprends des mécanismes de Duniter2, cela impliquerait

- si le validateur est honnête, qu’il retire son noeud ou le corrige (d’où la demande de pouvoir intervenir vite sur son noeud en tant que forgeron)
- si le validateur est malhonnête (c’est une attaque), d’exclure ce ou ces membres de la TdC forgeron ? Un mécanisme existe-t-il pour ça ?

---

<div class="post-metadata">

**Author:** ![tuxmain](https://forum.duniter.org/user_avatar/forum.duniter.org/tuxmain/32/6423_2.png) [@tuxmain](https://forum.duniter.org/u/tuxmain)\
**Post date:** [21 July 2024 09:54 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/7 "2024-07-21T09:54:41Z")

</div>

Mais comment sait-on quel nœud a un problème ? Est-ce qu’il suffirait de resync nos nœuds chacun son tour ? Voici quelques logs récurrents chez moi, dites si vous avez plus ou moins d’erreurs&nbsp;:

```auto
Jul 21 09:46:44 polux duniter[355946]: 2024-07-21 09:46:44 Report 12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr: -536870912 to -1919010820. Reason: Block verification failed. Banned, disconnecting.
Jul 21 09:46:45 polux duniter[355946]: 2024-07-21 09:46:45 Report 12D3KooWEUd4zCqqVZS3B5mkzDBWnMGTJM4e5jwUad6U4xM1NCM5: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting.
Jul 21 09:47:15 polux duniter[355946]: 2024-07-21 09:47:15 💔 Verification failed for block 0xa2a7aedae41dbddd67017a3c3f2ece987c3a0974d2371b82d7388bb8b219cb9f received from (12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr): "Header 0xa2a7aedae41dbddd67017a3c3f2ece987c3a0974d2371b82d7388bb8b219cb9f rejected: too far in the future"

```

> [@matograine](#):
>
> si le validateur est malhonnête (c’est une attaque), d’exclure ce ou ces membres de la TdC forgeron ? Un mécanisme existe-t-il pour ça ?

Le comité technique peut voter. Sudo peut forcer.

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)\
**Post date:** [22 July 2024 09:21 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/8 "2024-07-22T09:21:21Z")

</div>

J’ai renommé le sujet et déplacé de #Support vers #ĞDev. La dernière fois ([Finalisation bloquée](https://forum.duniter.org/t/finalisation-bloquee/11760)), la cause était claire, ici elle l’est moins. Il va falloir investiguer.

> [@tuxmain](#):
>
> on peut essayer grandpa/noteStalled, sinon reset.

J’aimerais bien comprendre précisément ce qui s’est passé, pour corriger le problème s’il y en a un et apprendre à réagir correctement si ça a lieu en prod sur la Ǧ1. Parce que dans ce cas on n’aura pas l’option de rebooter.

> [@tuxmain](#):
>
> quelques logs récurrents chez moi

J’ai les mêmes.

```auto
💔 Verification failed for block 0xd0d9df9fe4906e33d6b53c8750eb6eb1974c9afcb5ca76a9301f5210e7e9c23c received from (12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr): "Header 0xd0d9df9fe4906e33d6b53c8750eb6eb1974c9afcb5ca76a9301f5210e7e9c23c rejected: too far in the future"    

```

- Le bloc `0xd0d9df9fe4906e33d6b53c8750eb6eb1974c9afcb5ca76a9301f5210e7e9c23c` est le numéro 2329557, soit le bloc courant, et il y a une ligne “💔” assez régulièrement pour des blocs récents
- Le peerId `12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr` est celui de @Moul, on trouve ça facilement dans la télémétrie. C’est systématiquement ce pair qui apparaît dans les lignes “💔”, si un nœud a un problème, je suppose que c’est celui-ci.

```auto
# tes lignes
Report 12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr: -536870912 to -1919010820. Reason: Block verification failed. Banned, disconnecting.
Report 12D3KooWEUd4zCqqVZS3B5mkzDBWnMGTJM4e5jwUad6U4xM1NCM5: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting.
# mes lignes
Report 12D3KooWB14DgfHom9PB3JoE2Gg1o7xsM2uBjjJafHVyewTjvBgX: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting.    
Report 12D3KooWEUd4zCqqVZS3B5mkzDBWnMGTJM4e5jwUad6U4xM1NCM5: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting.  
Report 12D3KooWB3zoZgS9GmzDMJSkgRXd3eiGft5HQAB84GEBj9GpZY9V: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting.    

```

Tout ce qui est “genesis mismatch”, c’est juste des ban de peerId de nœuds qui ne sont pas sur le bon réseau. Ce ne sont visiblement pas ceux des anciens réseaux ĞDev, mais bon, ça peut arriver. Il y en avait beaucoup au début du réseau, il y en a moins en ce moment.

Le “Block verification failed”, c’est le même que plus haut, ça me paraît aussi normal de refuser de maintenir des connexions avec des pairs qui ont un comportement anormal.

Mais la question est : _qu’a pu faire un nœud même validateur pour bloquer la finalisation_ ?

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)\
**Post date:** [22 July 2024 10:00 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/9 "2024-07-22T10:00:19Z")

</div>

Je regarde plus en détail les logs du moment du dernier bloc finalisé :

```auto
docker compose logs --since=2024-07-12T12:00:00Z --until=2024-07-12T20:00:00Z

```

```auto
2024-07-12 19:36:20 ✨ Imported #2208385 (0x410b…14ec)    
2024-07-12 19:36:20 💔 Verification failed for block 0x7abce934b371b8cb19fced3497be283cfb5ad2e21e7952f29fb52de8f4f5bfe7 received from (12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr): "Header 0x7abce934b371b8cb19fced3497be283cfb5ad2e21e7952f29fb52de8f4f5bfe7 rejected: too far in the future"    
2024-07-12 19:36:24 ✨ Imported #2208386 (0x3469…e9cc)    
2024-07-12 19:36:24 💤 Idle (16 peers), best: #2208386 (0x3469…e9cc), finalized #2208383 (0xd15f…9044), ⬇ 10.7kiB/s ⬆ 12.2kiB/s    
2024-07-12 19:36:29 💤 Idle (16 peers), best: #2208386 (0x3469…e9cc), finalized #2208384 (0xf0eb…1184), ⬇ 11.4kiB/s ⬆ 10.9kiB/s    
2024-07-12 19:36:34 💤 Idle (16 peers), best: #2208386 (0x3469…e9cc), finalized #2208384 (0xf0eb…1184), ⬇ 4.3kiB/s ⬆ 9.8kiB/s    
2024-07-12 19:36:36 ✨ Imported #2208387 (0x9af9…3e93)    
2024-07-12 19:36:37 ♻️ Reorg on #2208387,0x9af9…3e93 to #2208386,0x7abc…bfe7, common ancestor #2208384,0xf0eb…1184    
2024-07-12 19:36:37 ✨ Imported #2208386 (0x7abc…bfe7)    
2024-07-12 19:36:39 💤 Idle (17 peers), best: #2208385 (0x7f8b…76a9), finalized #2208385 (0x7f8b…76a9), ⬇ 12.0kiB/s ⬆ 16.5kiB/s    
2024-07-12 19:36:42 ♻️ Reorg on #2208386,0x7abc…bfe7 to #2208388,0x8ab5…262b, common ancestor #2208384,0xf0eb…1184    
2024-07-12 19:36:42 ✨ Imported #2208388 (0x8ab5…262b)    
2024-07-12 19:36:44 💔 Verification failed for block 0x28d58ecab16c6bbe16e499a936453bbb92dd67d5fac6b2d258b55d29fd6f1ceb received from (12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr): "Header 0x28d58ecab16c6bbe16e499a936453bbb92dd67d5fac6b2d258b55d29fd6f1ceb rejected: too far in the future"    
2024-07-12 19:36:44 💤 Idle (16 peers), best: #2208388 (0x8ab5…262b), finalized #2208386 (0x3469…e9cc), ⬇ 8.0kiB/s ⬆ 14.9kiB/s    
2024-07-12 19:36:48 ✨ Imported #2208389 (0xc5aa…c625)    
2024-07-12 19:36:48 Sending fatal alert BadCertificate    
2024-07-12 19:36:49 💤 Idle (16 peers), best: #2208389 (0xc5aa…c625), finalized #2208386 (0x3469…e9cc), ⬇ 14.3kiB/s ⬆ 14.2kiB/s    
2024-07-12 19:36:54 💤 Idle (16 peers), best: #2208389 (0xc5aa…c625), finalized #2208387 (0x9af9…3e93), ⬇ 9.5kiB/s ⬆ 11.2kiB/s    
2024-07-12 19:36:59 💤 Idle (16 peers), best: #2208389 (0xc5aa…c625), finalized #2208387 (0x9af9…3e93), ⬇ 5.4kiB/s ⬆ 10.0kiB/s    
2024-07-12 19:37:00 ✨ Imported #2208390 (0x85e0…1a0a)    
2024-07-12 19:37:04 💤 Idle (17 peers), best: #2208390 (0x85e0…1a0a), finalized #2208388 (0x8ab5…262b), ⬇ 12.4kiB/s ⬆ 13.9kiB/s    
2024-07-12 19:37:06 ✨ Imported #2208391 (0xc371…9ff3)    
2024-07-12 19:37:08 ✨ Imported #2208389 (0x28d5…1ceb)    
2024-07-12 19:37:08 ♻️ Reorg on #2208391,0xc371…9ff3 to #2208390,0xc51c…8f1a, common ancestor #2208388,0x8ab5…262b    
2024-07-12 19:37:08 ✨ Imported #2208390 (0xc51c…8f1a)    
2024-07-12 19:37:08 💔 Verification failed for block 0xfbc21460653c3c89597c3df10ce9d8d5aded3a6eecfb40d8d3a77e1a2cf601b4 received from (12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr): "Header 0xfbc21460653c3c89597c3df10ce9d8d5aded3a6eecfb40d8d3a77e1a2cf601b4 rejected: too far in the future"    
2024-07-12 19:37:09 💤 Idle (16 peers), best: #2208390 (0xc51c…8f1a), finalized #2208388 (0x8ab5…262b), ⬇ 9.1kiB/s ⬆ 15.9kiB/s    
2024-07-12 19:37:14 ✨ Imported #2208391 (0xfbc2…01b4)    
2024-07-12 19:37:14 💤 Idle (16 peers), best: #2208391 (0xfbc2…01b4), finalized #2208388 (0x8ab5…262b), ⬇ 4.0kiB/s ⬆ 4.9kiB/s    
2024-07-12 19:37:19 💤 Idle (16 peers), best: #2208389 (0xc5aa…c625), finalized #2208389 (0xc5aa…c625), ⬇ 1.8kiB/s ⬆ 4.7kiB/s    
2024-07-12 19:37:21 💔 Verification failed for block 0x6c9c29561d3d4ad2207bd7c2ba1b9a460b806b30d19aa4324aa9c42910dd7d29 received from (12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr): "Header 0x6c9c29561d3d4ad2207bd7c2ba1b9a460b806b30d19aa4324aa9c42910dd7d29 rejected: too far in the future"    
2024-07-12 19:37:24 💤 Idle (13 peers), best: #2208389 (0xc5aa…c625), finalized #2208389 (0xc5aa…c625), ⬇ 6.7kiB/s ⬆ 6.3kiB/s    
2024-07-12 19:37:29 💤 Idle (13 peers), best: #2208389 (0xc5aa…c625), finalized #2208389 (0xc5aa…c625), ⬇ 2.2kiB/s ⬆ 1.1kiB/s    
2024-07-12 19:37:34 💤 Idle (13 peers), best: #2208389 (0xc5aa…c625), finalized #2208389 (0xc5aa…c625), ⬇ 3.4kiB/s ⬆ 0.5kiB/s    
2024-07-12 19:37:36 ♻️ Reorg on #2208391,0xfbc2…01b4 to #2208392,0xad85…569b, common ancestor #2208388,0x8ab5…262b    
2024-07-12 19:37:36 ✨ Imported #2208392 (0xad85…569b)    
2024-07-12 19:37:38 Sending fatal alert BadCertificate    
2024-07-12 19:37:38 ✨ Imported #2208392 (0x6c9c…7d29)    
2024-07-12 19:37:39 💔 Verification failed for block 0x36a15dbc2db96e3e49fde9088c1effeb9e87a77978e64175e2f26dce08058462 received from (12D3KooWAikpy6szmM7QW5QYEFqjiiWYJ3AXLU448htzFLqam2Qr): "Header 0x36a15dbc2db96e3e49fde9088c1effeb9e87a77978e64175e2f26dce08058462 rejected: too far in the future"    
2024-07-12 19:37:39 💤 Idle (16 peers), best: #2208392 (0xad85…569b), finalized #2208389 (0xc5aa…c625), ⬇ 12.5kiB/s ⬆ 6.5kiB/s    
2024-07-12 19:37:42 ✨ Imported #2208393 (0x1e83…2588)    
2024-07-12 19:37:42 ✨ Imported #2208393 (0x808f…be7a)    
2024-07-12 19:37:44 💤 Idle (16 peers), best: #2208393 (0x1e83…2588), finalized #2208389 (0xc5aa…c625), ⬇ 2.6kiB/s ⬆ 4.0kiB/s    
2024-07-12 19:37:49 💤 Idle (16 peers), best: #2208393 (0x1e83…2588), finalized #2208389 (0xc5aa…c625), ⬇ 0.3kiB/s ⬆ 0.5kiB/s    
2024-07-12 19:37:54 ♻️ Reorg on #2208393,0x1e83…2588 to #2208394,0x835a…6548, common ancestor #2208392,0xad85…569b    
2024-07-12 19:37:54 ✨ Imported #2208394 (0x835a…6548)    
2024-07-12 19:37:54 💤 Idle (16 peers), best: #2208394 (0x835a…6548), finalized #2208389 (0xc5aa…c625), ⬇ 3.6kiB/s ⬆ 2.2kiB/s    
2024-07-12 19:37:59 💤 Idle (16 peers), best: #2208394 (0x835a…6548), finalized #2208389 (0xc5aa…c625), ⬇ 2.3kiB/s ⬆ 33.5kiB/s    
2024-07-12 19:38:00 ✨ Imported #2208395 (0x67af…ea5f)    

```

Il y avait déjà un problème avec le nœud de @Moul. Et je vois :

- un rollback de `2208391` à `2208389`
- un temps trop long passé sur le bloc `2208389` (de 19:37:19 à 19:37:34)
- deux réorganisations sur le bloc `2208388`, plus fréquent que d’habitude

Par contre, rien de spécial dans les blocs alentour 🤔

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)\
**Post date:** [22 July 2024 12:41 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/10 "2024-07-22T12:41:46Z")

</div>

Plus d’infos dans mes logs forgeron curieusement :

```auto
2024-07-12 19:37:00 ✨ Imported #2208390 (0x85e0…1a0a)    
2024-07-12 19:37:01 💤 Idle (14 peers), best: #2208390 (0x85e0…1a0a), finalized #2208388 (0x8ab5…262b), ⬇ 17.1kiB/s ⬆ 10.6kiB/s    
2024-07-12 19:37:06 💤 Idle (14 peers), best: #2208390 (0x85e0…1a0a), finalized #2208388 (0x8ab5…262b), ⬇ 12.9kiB/s ⬆ 7.7kiB/s    
2024-07-12 19:37:11 💤 Idle (14 peers), best: #2208390 (0x85e0…1a0a), finalized #2208388 (0x8ab5…262b), ⬇ 20.6kiB/s ⬆ 2.8kiB/s    
2024-07-12 19:37:11 ✨ Imported #2208391 (0xc371…9ff3)    
2024-07-12 19:37:12 ✨ Imported #2208389 (0x28d5…1ceb)    
2024-07-12 19:37:12 ♻️ Reorg on #2208391,0xc371…9ff3 to #2208390,0xc51c…8f1a, common ancestor #2208388,0x8ab5…262b    
2024-07-12 19:37:12 ✨ Imported #2208390 (0xc51c…8f1a)    
2024-07-12 19:37:12 Encountered error finding best chain containing 0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625: couldn't find target block: Chain lookup failed: Requested a finality target using a base 0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625 not in the best chain 0xc51c605ee2f0b94656361fb16a6db71898c2351a292869f7e3d7cd4bf8da8f1a    
2024-07-12 19:37:12 Could not cast prevote: previously known block 0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625 has disappeared    
2024-07-12 19:37:14 ✨ Imported #2208391 (0xfbc2…01b4)    
2024-07-12 19:37:16 💤 Idle (14 peers), best: #2208389 (0xc5aa…c625), finalized #2208389 (0xc5aa…c625), ⬇ 11.2kiB/s ⬆ 14.5kiB/s    
2024-07-12 19:37:18 Sending fatal alert BadCertificate    
2024-07-12 19:37:21 💤 Idle (14 peers), best: #2208389 (0xc5aa…c625), finalized #2208389 (0xc5aa…c625), ⬇ 4.2kiB/s ⬆ 40.4kiB/s    
2024-07-12 19:37:26 💤 Idle (15 peers), best: #2208389 (0xc5aa…c625), finalized #2208389 (0xc5aa…c625), ⬇ 2.4kiB/s ⬆ 1.4kiB/s    
2024-07-12 19:37:31 💤 Idle (15 peers), best: #2208389 (0xc5aa…c625), finalized #2208389 (0xc5aa…c625), ⬇ 3.1kiB/s ⬆ 1.0kiB/s    
2024-07-12 19:37:36 ♻️ Reorg on #2208391,0xfbc2…01b4 to #2208392,0xad85…569b, common ancestor #2208388,0x8ab5…262b    
2024-07-12 19:37:36 ✨ Imported #2208392 (0xad85…569b)    
2024-07-12 19:37:36 💤 Idle (13 peers), best: #2208392 (0xad85…569b), finalized #2208389 (0xc5aa…c625), ⬇ 1.2kiB/s ⬆ 2.4kiB/s    
2024-07-12 19:37:38 ✨ Imported #2208392 (0x6c9c…7d29)    
2024-07-12 19:37:41 💤 Idle (14 peers), best: #2208392 (0xad85…569b), finalized #2208389 (0xc5aa…c625), ⬇ 9.3kiB/s ⬆ 3.1kiB/s    
2024-07-12 19:37:42 ✨ Imported #2208393 (0x808f…be7a)    
2024-07-12 19:37:42 ✨ Imported #2208393 (0x1e83…2588)    
2024-07-12 19:37:46 💤 Idle (14 peers), best: #2208393 (0x808f…be7a), finalized #2208389 (0xc5aa…c625), ⬇ 1.6kiB/s ⬆ 3.9kiB/s    
2024-07-12 19:37:51 💤 Idle (14 peers), best: #2208393 (0x808f…be7a), finalized #2208389 (0xc5aa…c625), ⬇ 3.1kiB/s ⬆ 0.9kiB/s    
2024-07-12 19:37:54 🙌 Starting consensus session on top of parent 0x808f350316c928f2c17f5843f1b1e3742a649a65dc3103bbea0b0fe9d664be7a    
2024-07-12 19:37:54 🎁 Prepared block for proposing at 2208394 (8 ms) [hash: 0x513f9747d8a7edb4bb4b572428792721af144b83cfe35513898f5ca5c2ed6a59; parent_hash: 0x808f…be7a; extrinsics (1): [0x3488…c384]    
2024-07-12 19:37:54 🔖 Pre-sealed block for proposal at 2208394. Hash now 0x835ade6718d434b7be372885d5699486bff3e07cff8a02276679518baea26548, previously 0x513f9747d8a7edb4bb4b572428792721af144b83cfe35513898f5ca5c2ed6a59.    
2024-07-12 19:37:54 ✨ Imported #2208394 (0x835a…6548)    

```

Les lignes intéressantes :

> Encountered error finding best chain containing `0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625`: couldn’t find target block: Chain lookup failed: Requested a finality target using a base `0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625` not in the best chain `0xc51c605ee2f0b94656361fb16a6db71898c2351a292869f7e3d7cd4bf8da8f1a`
> 
> Could not cast prevote: previously known block `0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625` has disappeared
> 
> Sending fatal alert BadCertificate  
> _[celui-ci semble être un log rustls lié plutôt à la télémétrie]_

**bloc** `0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625`  
**numéro** 2,208,389, **auteur** @Pini , **timestamp** 1,720,813,008,001  
**parent** `0x8ab5aa07aaa408fc603b42bd49a1c77cf6940f9eb1e5e4737c4668a9da1b262b`

**bloc** `0xc51c605ee2f0b94656361fb16a6db71898c2351a292869f7e3d7cd4bf8da8f1a`  
**numéro** 2,208,390, **auteur** @Moul, **timestamp** 1,720,813,032,000  
**parent** `0x28d58ecab16c6bbe16e499a936453bbb92dd67d5fac6b2d258b55d29fd6f1ceb`  
**numéro** 2,208,389, **auteur** @Moul, **timestamp** 1,720,813,014,001  
**grand-parent** `0x8ab5aa07aaa408fc603b42bd49a1c77cf6940f9eb1e5e4737c4668a9da1b262b`

* * *

Donc en gros, on a deux candidats pour le bloc 2208389 :

- le bloc `0x28d58ecab16c6bbe16e499a936453bbb92dd67d5fac6b2d258b55d29fd6f1ceb` de @Moul sur lequel est basé la “best chain”, mais qui a été refusé pour le motif suivant :

```auto
"Header 0x28d58ecab16c6bbe16e499a936453bbb92dd67d5fac6b2d258b55d29fd6f1ceb rejected: too far in the future"

```

- le bloc `0xc5aa6d4d5929c8bd22af44f51db17bb5121e248d5eb7e1482f92c90ee5f2c625` de @Pini qui a été retenu par la suite

---

<div class="post-metadata">

**Author:** ![Pini](https://forum.duniter.org/user_avatar/forum.duniter.org/pini/32/6819_2.png) [@Pini](https://forum.duniter.org/u/Pini)\
**Post date:** [22 July 2024 12:59 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/11 "2024-07-22T12:59:30Z")

</div>

Moi j’ai ça :

```auto
$ bin/gcli -u wss://gdev.pini.fr/ws blockchain current-block
on wss://gdev.pini.fr/ws
finalized block	2208389
current block	2331650

```

---

<div class="post-metadata">

**Author:** ![Pini](https://forum.duniter.org/user_avatar/forum.duniter.org/pini/32/6819_2.png) [@Pini](https://forum.duniter.org/u/Pini)\
**Post date:** [22 July 2024 13:28 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/12 "2024-07-22T13:28:32Z")

</div>

> [@HugoTrentesaux](#):
>
> `"Header 0x28d58ecab16c6bbe16e499a936453bbb92dd67d5fac6b2d258b55d29fd6f1ceb rejected: too far in the future"`

Horloge du noeud de @Moul à régler correctement ?

---

<div class="post-metadata">

**Author:** ![Moul](https://forum.duniter.org/user_avatar/forum.duniter.org/moul/32/9145_2.png) [@Moul](https://forum.duniter.org/u/Moul)\
**Post date:** [22 July 2024 13:35 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/13 "2024-07-22T13:35:19Z")

</div>

Sur mon host :

```auto
date
Mon 22 Jul 15:35:21 CEST 2024

```

Dans le conteneur :

```auto
date
Mon Jul 22 13:35:12 UTC 2024

```

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)\
**Post date:** [22 July 2024 13:37 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/14 "2024-07-22T13:37:54Z")

</div>

> [@Pini](#):
>
> Horloge du noeud de @Moul à régler correctement ?

Effectivement, il doit y avoir un truc de ce côté là vu le timing des blocs :

- 2,208,388 `0x8ab5aa07` 1,720,813,002,001 @Pini
- 2,208,389 `0xc5aa6d4d` 1,720,813,008,001 @Pini
- 2,208,389 `0x28d58eca` 1,720,813,014,001 @Moul
- 2,208,390 `0xc51c605e` 1,720,813,032,000 @Moul

Vu dans le code des primitives substrate timestamp :

```auto
/// By default the maximum drift is 60 seconds.
///
/// The maximum drift is used when checking the inherents of a runtime. If the current timestamp
/// plus the maximum drift is smaller than the timestamp in the block, the block will be
/// rejected as being too far in the future.

```

---

<div class="post-metadata">

**Author:** ![Moul](https://forum.duniter.org/user_avatar/forum.duniter.org/moul/32/9145_2.png) [@Moul](https://forum.duniter.org/u/Moul)\
**Post date:** [22 July 2024 13:42 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/15 "2024-07-22T13:42:11Z")

</div>

J’ai remarqué que depuis la dernière installation que j’ai faite avec podman, mes blocs ne sont pas toujours acceptés par le réseau.

La finalisation est bloquée que pour cette finalisation ? Peut-être qu’un autre paramètre est responsable. Il y n’a pas eu de changement de mon côté depuis un moment.

---

<div class="post-metadata">

**Author:** ![Pini](https://forum.duniter.org/user_avatar/forum.duniter.org/pini/32/6819_2.png) [@Pini](https://forum.duniter.org/u/Pini)\
**Post date:** [22 July 2024 13:49 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/16 "2024-07-22T13:49:50Z")

</div>

Est-ce que ça ne pourrait pas être un autre noeud mal configuré qui émet ce rejet ?

---

<div class="post-metadata">

**Author:** ![vit](https://forum.duniter.org/user_avatar/forum.duniter.org/vit/32/2775_2.png) [@vit](https://forum.duniter.org/u/vit)\
**Post date:** [22 July 2024 14:14 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/17 "2024-07-22T14:14:09Z")

</div>

Sur mon host :

```auto
date
lundi 22 juillet 2024, 16:11:22 (UTC+0200)

```

Dans le conteneur :

```auto
date
Mon Jul 22 14:12:01 UTC 2024

```

---

<div class="post-metadata">

**Author:** ![Pini](https://forum.duniter.org/user_avatar/forum.duniter.org/pini/32/6819_2.png) [@Pini](https://forum.duniter.org/u/Pini)\
**Post date:** [22 July 2024 14:24 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/18 "2024-07-22T14:24:50Z")

</div>

> [@HugoTrentesaux](#):
>
> `"Header 0x28d58ecab16c6bbe16e499a936453bbb92dd67d5fac6b2d258b55d29fd6f1ceb rejected: too far in the future"`

Y’a moyen de savoir quel noeud émet ce rejet ?

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)\
**Post date:** [22 July 2024 14:39 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/19 "2024-07-22T14:39:14Z")

</div>

Bah là c’est le mien vu que c’est mes logs. Je serais curieux de voir les logs des autres validateurs au même moment.

---

<div class="post-metadata">

**Author:** ![Moul](https://forum.duniter.org/user_avatar/forum.duniter.org/moul/32/9145_2.png) [@Moul](https://forum.duniter.org/u/Moul)\
**Post date:** [22 July 2024 14:49 UTC](https://forum.duniter.org/t/finalisation-bloquee-2/12361/20 "2024-07-22T14:49:05Z")

</div>

Pour ma part, je ne trouve pas ce qui suit dans mes logs :

> [@HugoTrentesaux](#):
>
> rejected: too far in the future

[Next page](https://forum.duniter.org/t/finalisation-bloquee-2/12361.md?page=2)
