# ĞDev3 smiths

**URL:** <https://forum.duniter.org/t/gdev3-smiths/10019>\
**Category:** Duniter-v2s\
**Created:** [17 November 2022 10:32 UTC](https://forum.duniter.org/t/gdev3-smiths/10019 "2022-11-17T10:32:03Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [17 November 2022 10:32 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/1 "2022-11-17T10:32:03Z")

</div>

During [Bordeaux hackathon](https://forum.duniter.org/t/rencontre-technique-a-bordeaux-du-11-au-13-novembre-2022/9803/26), we launched the ĞDev3. The BABE consensus algorithm involves that loosing more than ⅓ of the authorities will result in unstable network (explanation in the [rush](https://forum.duniter.org/t/rencontre-technique-a-bordeaux-du-11-au-13-novembre-2022/9803/26) provided by 1000i100 still to be cut). So we need to organize ourselves to make sure the smith are enough and do `goOffline()` in advance if they know their node is risking interruption of service.

A visio in english will be set in order to increase the number of people in the smith subwot and we will track the activity of the authorities in the following topic until we get better tooling.

* * *

Note:

Telemetry available here: [Polkadot Telemetry](https://telemetry.polkadot.io/#/0x9f956a87b5568f12c757bb3426897bba6123a1ef311fcd0945bd669fd0e612f8)

---

<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:** [17 November 2022 10:34 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/2 "2022-11-17T10:34:56Z")

</div>

I do not have much space left on my server, so I’m doing `goOffline()` to change my node config to enable pruning (no more archive node) before I’m actually running out of storage. I’m waiting for the next epoch to turn off my node and I’ll tell here when it it back up.

[edit] I’m back computing nodes 🙂

---

<div class="post-metadata">

**Author:** ![poka](https://forum.duniter.org/user_avatar/forum.duniter.org/poka/32/6827_2.png) [@poka](https://forum.duniter.org/u/poka)\
**Post date:** [17 November 2022 13:29 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/3 "2022-11-17T13:29:20Z")

</div>

I just goOffline 2 hours ago because p2p.legal domain is migrating from [online.net](http://online.net) to Gandi, during a few days.  
Hugo is also goOffline cause a space disk to increase.

So actually Elois is the only validator…

---

<div class="post-metadata">

**Author:** ![elois](https://forum.duniter.org/user_avatar/forum.duniter.org/elois/32/1541_2.png) [@elois](https://forum.duniter.org/u/elois)\
**Post date:** [17 November 2022 15:24 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/4 "2022-11-17T15:24:26Z")

</div>

> [@poka](#):
>
> because p2p.legal domain is migrating from [online.net](http://online.net) to Gandi, during a few days.

You don’t need to have a reachable dns, you can set up your libp2p endpoint with an IP by adding this line in your compose:

```
  - "--public-addr=/ip4/${SERVER_IP}/tcp/30333/p2p/${PEER_ID}"

```

---

<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:** [17 November 2022 23:42 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/5 "2022-11-17T23:42:01Z")

</div>

I just configured my node as a validator and went online using [ğcli](https://git.duniter.org/clients/rust/gcli-v2s).

ğcli has some new commands:

- `update-keys`: rotate keys and set session keys
- `go-online`: checks whether the accounts has session keys before sending the extrinsic
- `go-offline`

---

<div class="post-metadata">

**Author:** ![poka](https://forum.duniter.org/user_avatar/forum.duniter.org/poka/32/6827_2.png) [@poka](https://forum.duniter.org/u/poka)\
**Post date:** [19 November 2022 20:20 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/6 "2022-11-19T20:20:44Z")

</div>

> [@tuxmain](#):
>
> `go-online`: checks whether the accounts has session keys before sending the extrinsic

👍 👍 👍 !

---

<div class="post-metadata">

**Author:** ![poka](https://forum.duniter.org/user_avatar/forum.duniter.org/poka/32/6827_2.png) [@poka](https://forum.duniter.org/u/poka)\
**Post date:** [19 November 2022 20:28 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/7 "2022-11-19T20:28:09Z")

</div>

i’m online again.

Think to name your nodes: [Polkadot Telemetry](https://telemetry.polkadot.io/#list/0x9f956a87b5568f12c757bb3426897bba6123a1ef311fcd0945bd669fd0e612f8)

```auto
    command:
      - "--name"
      - "poka-validator"

```

---

<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:** [10 December 2022 10:59 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/8 "2022-12-10T10:59:24Z")

</div>

I did `goOffline` because my server did not have disk space left. We really have to welcome more smith for the next iteration. This will be a subject for the next [monthly video meeting](https://forum.duniter.org/t/monthly-online-meeting-of-contributors-to-duniter-g1-technical-ecosystem/7933/214) on December 18.

---

<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:** [10 December 2022 11:12 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/9 "2022-12-10T11:12:26Z")

</div>

More smiths won’t solve the storage problem… do you have archive mode enabled?

Edit: my node uses 2GB.

---

<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:** [10 December 2022 11:14 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/10 "2022-12-10T11:14:59Z")

</div>

> [@HugoTrentesaux](#):
>
> (no more archive node) before I’m actually running out of storage

No, I enabled pruning. Duniter still takes a bit of space, but I’m really short, I have to move some stuff.

```auto
5.1G	./duniter-v2s

```

Here are the associated events:

 ![image](https://forum.duniter.org/uploads/default/original/2X/f/fb5a4e455ff1fd25fd3c4c3ac2c4361923df8ccc.png)

---

<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:** [10 December 2022 11:28 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/11 "2022-12-10T11:28:41Z")

</div>

I am interested to start as a smith in next ĞDev iteration.

> [@HugoTrentesaux](#):
>
> [visio](https://forum.duniter.org/t/monthly-online-meeting-of-contributors-to-duniter-g1-technical-ecosystem/7933/214)

Btw, I think English speakers do not understand what’s the meaning of this word.

---

<div class="post-metadata">

**Author:** ![poka](https://forum.duniter.org/user_avatar/forum.duniter.org/poka/32/6827_2.png) [@poka](https://forum.duniter.org/u/poka)\
**Post date:** [11 December 2022 02:23 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/12 "2022-12-11T02:23:10Z")

</div>

Je viens de refactoriser un peu le dossier customs de py-g1-migrator.

Désormais il vous suffit de faire [une MR sur ce fichier json](https://git.duniter.org/tools/py-g1-migrator/-/blob/master/custom/smiths.json) pour vous ajouter au groupe smiths (membres forgerons) de la prochaine ĞDev.

Vous devez également **impérativement** vous ajouter dans [ce fichier json de switch](https://git.duniter.org/tools/py-g1-migrator/-/blob/master/custom/addresses_switches.json).

J’ai réfléchie pour merger un peu ça, importer tous les smiths automatiquement vers le fichier switches, mais ça implique de déclarer les clés Ğ1v1 ET v2 dans le json smiths, qui lui est juste la partie json attendu par Duniter qui n’a besoin d’aucune de ces 2 clés.  
On est obligé de faire ainsi pour moi si on veut garder un truc propre et simple.

Les MRs seront directement acceptés pour tous ceux qui ont déjà été smiths depuis le début de la ĞDev1.  
Les autres, il faudra nous assurer que vous avez le matériel suffisant, compris la licence forgerons, et les compétences techniques pour faire tourner un noeud forgerons correctement.

Le prochain reboot de demain se fera à partir des données issues de py-g1-migrator au moment t.

Si vous voulez devenir smith par certification entre 2 reboots, alors **vous devez** au choix soit:

- au préalable avoir rempli le json de switch (pas celui de smith)
- simplement d’abords migrer votre compte membre Ğ1v1 vers un portefeuille V2 via Ğecko mobile ou un autre client v2s compatible, avant de demander à vous faire certifier cette adresse 🙂

Le `consumer` sur chaque smith en blockchain **empêche la migration de l’identité tant qu’elle est dans ce groupe**.

* * *

Vous pouvez également faire une MR pour [vous ajouter au committee technique](https://git.duniter.org/tools/py-g1-migrator/-/blob/master/custom/technical_committee.json).

Enfin, vous pouvez ajouter des identités membres en plus de la votre, si jamais vous voulez tester à fond l’app et duniter en certifiant plsuieurs comptes chaques jours, ect…, dans [ce fichier json](https://git.duniter.org/tools/py-g1-migrator/-/blob/master/custom/identities.json).

Pour le moment il n’y en a qu’une, c’est ChristCosmic ^^

Pour rappel, [la sudokey](https://git.duniter.org/tools/py-g1-migrator/-/blob/master/main.py#L34) est toujours celle de @HugoTrentesaux .

Est-ce que cette procédure est claire ? N’hésitez pas si ya des points floues je sais pas.  
Est-ce que vous êtes OK pour l’appliquer pour les prochains reboots de ĞDev ?

* * *

edit: je viens de mettre à jours le readme: [README.md · master · tools / py-g1-migrator · GitLab](https://git.duniter.org/tools/py-g1-migrator/-/blob/master/README.md)

---

<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:** [13 December 2022 14:36 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/13 "2022-12-13T14:36:05Z")

</div>

> [@Moul](#):
>
> I am interested to start as a smith in next ĞDev iteration.

Too late to join directly in the genesis because the ĞDev was started today at `2022-12-13T01:35:24 `. You can still join as a mirror and we will smith-certify you.

There still some work to do on the documentation but you can read [docs/user/smith.md · master · nodes / rust / Duniter v2S · GitLab](https://git.duniter.org/nodes/rust/duniter-v2s/-/blob/master/docs/user/smith.md).

I will write temporary documentation to join the network until we fix the pipeline to publish a docker image with correct bootnodes in embeded chainspec.

---

<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:** [13 December 2022 15:14 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/14 "2022-12-13T15:14:06Z")

</div>

### Temporary tutorial to join ĞDev5

Until we publish a proper Docker image with embedded chainspecs (bootnodes with correct peer id and latest genesis), this is the process to join ĞDev5:

- follow this tutorial: [Files · master · nodes / rust / Duniter v2S · GitLab](https://git.duniter.org/nodes/rust/duniter-v2s/-/blob/master/docs/user/smith.md)
  - get and read `docker-compose.yml` example file
  - generate your node keys with commands given in `docker-compose.yml` example file
  - fill your `.env` file with `SERVER_DOMAIN`, `PEER_ID`, and `VALIDATOR_PEER_ID` as mentioned in `docker-compose.yml`
  - create your `duniter-rpc` and `duniter-validator` folders

- replace `DUNITER_CHAIN_NAME=gdev` by `DUNITER_CHAIN_NAME=/var/lib/duniter/gdev-raw.json` in your docker-compose file
- download the `gdev-raw.json` file with the link below
- replace the bootnode by `"/dns/gdev.p2p.legal/tcp/30334/p2p/12D3KooWMYJzk1FfBZjEAuEvwUnH2Luj5Bq4ouLX1tgZBPpFegaB"` in gdev-raw file
- put your `gdev-raw.json` in your `duniter-*` folders
- start your node

> **[gdev-raw.json](https://kdrive.infomaniak.com/app/share/303312/e090f8ef-c63b-4b5a-b095-4af8efb92580/preview/code/792)**
>
> Shared with kDrive, the ethical cloud

When you have a mirror node, we will tell you how to become smith (and write the doc).

---

<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:** [13 December 2022 20:13 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/15 "2022-12-13T20:13:02Z")

</div>

### Temporary tutorial to join ĞDev5 n°2

I build locally a new Duniter binary (not yet the Docker image).

[![logo](https://duniter.fr/img/duniterv2.svg) download here](https://plik.vulpecula.fr/file/LNE470X02ppBHl32/ZFJVrOGevBRRtxML/duniter)

You can run it with

```auto
./duniter --help # to get the manual
# to start a node with low history 
./duniter --chain gdev --pruning 10 --name local_node

```

---

<div class="post-metadata">

**Author:** ![poka](https://forum.duniter.org/user_avatar/forum.duniter.org/poka/32/6827_2.png) [@poka](https://forum.duniter.org/u/poka)\
**Post date:** [14 December 2022 05:32 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/16 "2022-12-14T05:32:49Z")

</div>

```auto
poka@pokaMint-desktop:~$ cd Téléchargements
poka@pokaMint-desktop:~/Téléchargements$ ./duniter --help
./duniter: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./duniter)
./duniter: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./duniter)
./duniter: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./duniter)
poka@pokaMint-desktop:~/Téléchargements$ 

```

```auto
$ sudo apt update
$ sudo apt install libc6-amd64 libc6-dev libc6-dbg
$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.9) 2.31
$ cat /etc/issue
Linux Mint 20.3 Una \n \l

```

Sorry but I don’t want to do this: [libraries - How to Install glibc 2.32 when I already have glibc2.31 - Ask Ubuntu](https://askubuntu.com/a/1345783/746820)

I prefere to stay stuck on my system packages.  
And I don’t need rolling release linux distribution, i’m happy with Mint.

---

<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:** [14 December 2022 13:30 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/17 "2022-12-14T13:30:50Z")

</div>

Ok, I do not know how to make a portable binary with Rust. Maybe @tuxmain you know? Anyway moul and 1000i100 are working on fixing the CI that will allow to publish docker images (cf [Need to fix GitLab CI for Duniter-v2s](https://forum.duniter.org/t/need-to-fix-gitlab-ci-for-duniter-v2s/10164)).

---

<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:** [14 December 2022 18:14 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/18 "2022-12-14T18:14:49Z")

</div>

You can build it for the target you want. If your default target is x86\_64 linux, `cargo build --release` is enough for x86\_64 linux with glibc version greater or equal to yours.

If you want portability with older glibc, it’s complicated. The easiest is still to build on an oldstable or oldoldstable Debian.

If you want cross-compiling, I don’t remember the options but it’s definitely possible. (may be complicated due to wasm) You’ll find tutorials out there. (or the thread about compiling on x86\_64 for arm)

---

<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:** [15 December 2022 09:45 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/19 "2022-12-15T09:45:48Z")

</div>

Thanks for your answer, we might want to provide packages for debian, arch, fedora… So that we build with the latest available glibc on these systems. @tuxmain did you use a docker image or a custom binary? Do you want to join the smiths? Currently [we only have two](https://telemetry.polkadot.io/#list/0xf9bb23a15c8323959bab5128c352356811dd1b8ef79c1aefff58642529260dfc). As soon as we fix the docker image we can ask [smiths-GDev](https://forum.duniter.org/g/smiths-GDev/members) to start forging blocks.

---

<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:** [15 December 2022 09:57 UTC](https://forum.duniter.org/t/gdev3-smiths/10019/20 "2022-12-15T09:57:58Z")

</div>

There are rust tools for building packages for Debian and Arch, i think we’ve been using at least one of them in Dunitrust’s CI.

Yes i’ll restart my node tonight, this afternoon it’s the algebra exam 😬 🤕

[Next page](https://forum.duniter.org/t/gdev3-smiths/10019.md?page=2)
