# Duniter's fork of Substrate

**URL:** https://forum.duniter.org/t/duniters-fork-of-substrate/10043
**Category:** Duniter-v2s
**Created:** [21 November 2022 18:38 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043 "2022-11-21T18:38:35Z")
**Posts on this page:** 14
**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: [21 November 2022 18:38 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/1 "2022-11-21T18:38:35Z")

</div>

Duniter is based on its own fork of Substrate

- [https://github.com/duniter/substrate/](https://github.com/duniter/substrate/)
- [https://github.com/duniter/subxt/](https://github.com/duniter/subxt/)

this first repository has 517 branches but we only use two of them (currently `duniter-substrate-v0.9.26` and `master`). We should remove some because it makes the repo heavier than needed (363.00 Mio).

---

<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 December 2022 19:48 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/2 "2022-12-17T19:48:33Z")

</div>

According to [this stackexchange answer](https://substrate.stackexchange.com/questions/4928/log-messages-not-displayed), upgrading to `v0.9.28` will fix the mentioned logging issue I’m also facing.

Last month, @elois created the branch [`v0.9.32`](https://github.com/duniter/substrate/tree/duniter-substrate-v0.9.32) and rebased his commits. But since he took a break in the project, he did not finished upgrading dependencies in Duniter. Is there anybody who would like to try upgrading the substrate version used by Duniter?

You could take example on previous upgrades:

- [upgrade substrate to polkadot-v0.9.26 (!99)](https://git.duniter.org/nodes/rust/duniter-v2s/-/commit/4310860a54516744943c5c98952e1b100b837b0f)
- [upgrade substrate to polkadot-v0.9.23 (!93)](https://git.duniter.org/nodes/rust/duniter-v2s/-/commit/ae65f879044475e2fab3d095c242c75af4957ffe)

---

<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: [18 December 2022 17:50 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/3 "2022-12-18T17:50:30Z")

</div>

I would like to try to do this, and maybe write a documentation about all the things to do for upgrading, if needed.

He said he was going to continue to update the substrate fork, but this was before he took more distance with the project.

---

<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: [2 February 2023 13:30 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/4 "2023-02-02T13:30:19Z")

</div>

### Updating substrate from v0.9.26 to 0.9.32

Substrate framework is still young and is evolving a lot. It can be painful to update the framework since it requires changing a lot of things in the whole codebase. Huge thanks to @tuxmain who completed this update in MR [!121](https://git.duniter.org/nodes/rust/duniter-v2s/-/merge_requests/121). It seems to have been painful:

> [@ĞDev3 smiths](https://forum.duniter.org/t/gdev3-smiths/10019/33):
>
> D’abord j’aimerais finir la mise à jour substrate 0.9.26 → 0.9.32, il y a énormément de trucs à changer et c’est très long de trouver quoi. (et à chaque fois que je crois avoir fini, bam ! une nouvelle fournée d’erreurs)

We still have a point to complete related to [`try-runtime`](https://docs.substrate.io/reference/command-line-tools/try-runtime/), but I think we can keep it like this until we get to the point where we are able to perform these kind of operations.

---

<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: [2 February 2023 16:42 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/6 "2023-02-02T16:42:14Z")

</div>

Si, on est toujours sous copyleft AGPL v3. Quelque chose indique le contraire ?

Substrate et Polkadot sont sous GPLv3+, et les autres dépendances sont le plus souvent sous licences permissives (MIT/Apache surtout). C’est compatible dans ce sens-là.

---

<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: [2 February 2023 17:52 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/8 "2023-02-02T17:52:58Z")

</div>

On n’a pas changé la licence du fork Substrate, parce que les modifications faites sont minimes, aucune fonctionnalité. Ce fork ne sert qu’à pouvoir faire des correctifs pour la compatibilité et gérer nos versions plus facilement.

Le code de Duniter lui-même est bien sous copyleft même s’il utilise du code sous licence permissive.

---

<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: [3 February 2023 08:50 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/10 "2023-02-03T08:50:28Z")

</div>

Out of curiosity I’ve built a docker image from this branch plus the chainspec from @poka’s branch. I first tested it on my RPC node. The best part of it is that I don’t need [this option](https://forum.duniter.org/t/gdev5-smiths/10234/17) anymore \o/

I then upgraded my smith node and all have been running fine so far.

---

<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: [25 May 2023 12:35 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/11 "2023-05-25T12:35:01Z")

</div>

@cgeek ou @kimamila ou @moul, est-ce que vous pouvez ajouter @tuxmain et @HugoTrentesaux au groupe “duniter” sur github ? ([People · Duniter · GitHub](https://github.com/orgs/duniter/people))  
Comme ça je peux ajouter @bgallois au fork de Substrate pour la prochaine mise-à-jour.

---

<div class="post-metadata">

### Author: ![cgeek](https://forum.duniter.org/user_avatar/forum.duniter.org/cgeek/32/279_2.png) [@cgeek](https://forum.duniter.org/u/cgeek)
#### Post date: [25 May 2023 19:03 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/12 "2023-05-25T19:03:33Z")

</div>

Quelqu’un semble l’avoir fait.

---

<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: [26 May 2023 08:04 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/13 "2023-05-26T08:04:56Z")

</div>

Moul l’a fait, on en a discuté sur le canal xmpp

---

<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: [5 September 2023 13:09 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/14 "2023-09-05T13:09:10Z")

</div>

Parity tech recently reorganized their repos under a single one:

- [https://github.com/paritytech/substrate/](https://github.com/paritytech/substrate/) (archived)
- [https://github.com/paritytech/polkadot-sdk](https://github.com/paritytech/polkadot-sdk) (new one)

And published a version 1.0 of substrate. This will cause some additional effort for the next update.

---

<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: [5 September 2023 13:17 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/15 "2023-09-05T13:17:26Z")

</div>

Let’s hope that Substrate remains uncoupled from Polkadot. They say it should not change anything from this point of view but maybe they won’t make too much efforts for maintaining Substrate for anything else than Polkadot…

---

<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: [5 September 2023 13:20 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/16 "2023-09-05T13:20:55Z")

</div>

Yes they should. The idea of polkadot is a blockchain network. Its value comes from the parachains connected to it, substrate goal is to make parachain developement easier.

---

<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: [5 September 2023 16:26 UTC](https://forum.duniter.org/t/duniters-fork-of-substrate/10043/17 "2023-09-05T16:26:42Z")

</div>

My worry is that they may focus on making a Polkadot parachain framework instead of a general blockchain framework.
