duniter issueshttps://git.duniter.org/nodes/typescript/duniter/-/issues2020-05-01T10:58:07+02:00https://git.duniter.org/nodes/typescript/duniter/-/issues/1355[AT] check that an external certification is from a member during block gener...2020-05-01T10:58:07+02:00Cédric Moreau[AT] check that an external certification is from a member during block generationSee https://forum.duniter.org/t/bug-a-l-ajout-d-une-certification-d-un-non-membre-dans-le-bloc-a-calculer-v1-7-16/5952/13See https://forum.duniter.org/t/bug-a-l-ajout-d-une-certification-d-un-non-membre-dans-le-bloc-a-calculer-v1-7-16/5952/131.8MoulMoulhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1403Add bash auto completion for duniter cli commands2020-05-05T18:31:49+02:00Vincent TexierAdd bash auto completion for duniter cli commandsFollowing this tutorial, we can add an auto-completion script for bash in the repository.
https://iridakos.com/programming/2018/03/01/bash-programmable-completion-tutorial
It will ease the duniter cli commands use.Following this tutorial, we can add an auto-completion script for bash in the repository.
https://iridakos.com/programming/2018/03/01/bash-programmable-completion-tutorial
It will ease the duniter cli commands use.1.8Vincent TexierVincent Texierhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1405Ajouter un script de création de livrable nu2020-05-12T09:35:54+02:00Stéphane VeyretAjouter un script de création de livrable nuLorsqu'une personne souhaite construire sa version de Duniter à partir des sources, il y a toute une procédure à suivre. Cette procédure peut être fragile (par exemple, il est actuellement nécessaire de patcher _leveldown_, ce qui n'est ...Lorsqu'une personne souhaite construire sa version de Duniter à partir des sources, il y a toute une procédure à suivre. Cette procédure peut être fragile (par exemple, il est actuellement nécessaire de patcher _leveldown_, ce qui n'est pas indiqué dans la procédure). Or, cette procédure va être utilisée par tout ceux qui n'ont pas une distribution héritée de Debian (et oui, il y en a !)
De plus, cette procédure est (plus ou moins) utilisée au sein du projet dans les scripts de création des livrables pour Linux ou Raspberry Pi. Elle est également utilisée dans le fichier d'installation du paquet sur Gentoo.
Pour toutes ces raisons, il serait bien d'avoir une seule commande simple a taper qui crée le livrable nu, c'est-à-dire sans y incorporer NodeJS, sans faire de traitement particulier pour générer des paquets spécifiques pour quelque distribution que ce soit. Ce script serait appelé par les autres, ce qui permettrait d'en faciliter la maintenance.
S'il y a le temps avant la sortie de la prochaine version, je me charge de créer ce script et de l'appeler depuis les scripts existants, de manière à ce que ce changement soit totalement transparent. Cela me facilitera grandement la création du paquet sur Gentoo.1.8https://git.duniter.org/nodes/typescript/duniter/-/issues/1406check-block: ignore issuer2020-05-06T23:54:49+02:00Cédric Moreaucheck-block: ignore issuerTo verify if our node will success to forge an acceptable block, we can use:
duniter gen-next --show --check --submit-local
This command will display the block and check it, *signature and pow* excluded (to have a quick answer abou...To verify if our node will success to forge an acceptable block, we can use:
duniter gen-next --show --check --submit-local
This command will display the block and check it, *signature and pow* excluded (to have a quick answer about the block's data, which is what we want to check).
However, the issuer still needs to be a member. So our node must a valid member key.
This issues aims at changing this point.1.8Cédric MoreauCédric Moreauhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1409Deprecated and now unused method lastBlockWithDividend()2020-05-09T20:32:37+02:00Cédric MoreauDeprecated and now unused method lastBlockWithDividend()This method was suspected to be orphan, but it was actually used by Duniter UI (to display units using UD).
However since LevelDB migration of Duniter 1.7, this method has become super slow and resource consuming.
[I updated DuniterUI ...This method was suspected to be orphan, but it was actually used by Duniter UI (to display units using UD).
However since LevelDB migration of Duniter 1.7, this method has become super slow and resource consuming.
[I updated DuniterUI to use another, way more performant method](https://git.duniter.org/nodes/typescript/modules/duniter-ui/commit/028d81ec).
So this `lastBlockWithDividend()` can be removed.1.8Cédric MoreauCédric Moreauhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1359Enable `--store-txs` by default, when BMA is enable2020-05-05T18:47:28+02:00Benoit LavenierEnable `--store-txs` by default, when BMA is enableThis [this post](https://forum.duniter.org/t/demandes-recurrentes-sur-cesium-evolution-de-duniter/5929/38?u=kimamila)
When store TX is disbale, this could be great to send an error (instead of returned a partial history).This [this post](https://forum.duniter.org/t/demandes-recurrentes-sur-cesium-evolution-de-duniter/5929/38?u=kimamila)
When store TX is disbale, this could be great to send an error (instead of returned a partial history).1.8https://git.duniter.org/nodes/typescript/duniter/-/issues/1412Fork generated due to certification link creation failed2020-06-03T20:25:06+02:00MoulFork generated due to certification link creation failedMight be due to the change of the WoT middleware to Rust. With Duniter v1.8.0b2:
```
2020-05-27T15:00:42+02:00 - info: SIDE Block #325807-0000009C added to the blockchain in 3 ms ...Might be due to the change of the WoT middleware to Rust. With Duniter v1.8.0b2:
```
2020-05-27T15:00:42+02:00 - info: SIDE Block #325807-0000009C added to the blockchain in 3 ms │
2020-05-27T15:00:42+02:00 - info: Block resolution: 2 potential blocks after current#324756... │
2020-05-27T15:00:42+02:00 - error: Error: fail to add link 774->71: unknown source │
at tempLinks.forEach (/opt/duniter/app/lib/indexer.js:1794:38) │
at Array.forEach (<anonymous>) │
at checkPeopleAreNotOudistanced (/opt/duniter/app/lib/indexer.js:1794:15) │
2020-05-27T15:00:42+02:00 - error: Error: fail to add link 3368->0: unknown source │
at tempLinks.forEach (/opt/duniter/app/lib/indexer.js:1794:38) │
at Array.forEach (<anonymous>) │
at checkPeopleAreNotOudistanced (/opt/duniter/app/lib/indexer.js:1794:15) │
2020-05-27T15:00:42+02:00 - info: Fork resolution: 180 potential block(s) found... │
2020-05-27T15:00:42+02:00 - info: Fork resolution: block #324757-000000D3 is known as incorrect. Skipping. │
2020-05-27T15:00:42+02:00 - info: Fork resolution: block #324757-000000D3 is known as incorrect. Skipping.
```
Block #324757 which is invalid:
```
curl host:port/blockchain/block/324757
{
[…]
"hash": "000000D31ECD59C3288A868074A8B0B0A8DE6236BACE143AD76944698A518BBC",
"parameters": "",
"previousHash": "000000184CB350F0CE9D7C7C87086ABFD8385ABD878C4FC9218FFD49EB915E0D",
"previousIssuer": "D3krfq6J9AmfpKnS3gQVYoy7NzGCc61vokteTS8LJ4YH",
"inner_hash": "1BE05B0B12DBC179E8E1D3EE00AB4EC068D6876F06D8525B5AF312B8F3558688",
"dividend": null,
"identities": [
"8bX9SBkkfUkz21ziUvjzxXHrQhGCBf8oXmQCGbYB9J1M:2SW3yAjnKlLu2ccx0Ts0ZcydQUf75AoHob8P8GTJzFe69Cja6t7YtG9tggiI0P9veHUCjYSIbpbsKmJqAa/bBw==:323111-00000001D69AF02E3512007CC668DAAECD3EFE85118A5BE0586C7DF26D924E5F:CedricPujolas"
],
"joiners": [
"8bX9SBkkfUkz21ziUvjzxXHrQhGCBf8oXmQCGbYB9J1M:mfqxWr8O2kcqNS8RYgRV4XIQBLwd/aS7vLzoGvrWe66d3JFP6ff9wHo26b2Yr0mqPL71fKVrl1a8J47KSOPnBA==:323111-00000001D69AF02E3512007CC668DAAECD3EFE85118A5BE0586C7DF26D924E5F:323111-00000001D69AF02E3512007CC668DAAECD3EFE85118A5BE0586C7DF26D924E5F:CedricPujolas"
],
"actives": [],
"leavers": [],
"revoked": [],
"excluded": [],
"certifications": [
"CTMGBspxizmHdxbYAr8DYYxMvowG4vf7aMp444F5XLC:8bX9SBkkfUkz21ziUvjzxXHrQhGCBf8oXmQCGbYB9J1M:324749:QqALvO0ayPLEKXr3cCqHXKzE733fcf2DiTCxtk7dlOQWZUocxL9xG+IraVdlJuWXiRaq63+ghEWQy8MLyLMUDA==",
"4Xu86cNGMMFBMdqmG63eKLRaxL9Eq9jRgo5xv2rNVy2o:8bX9SBkkfUkz21ziUvjzxXHrQhGCBf8oXmQCGbYB9J1M:324377:rsOVO+X5IfXHT+zAPUjOMhN2Ny33ZVYXbKzxY3sATHCm3SUQQOCIvqjIyRu6QOWKBtsFv+tZqU8F52VDVv7mCQ==",
"8SixHYfcrNsU4zKaauHk8D8MTTM7hYoWxT5BjHEXgyKg:8bX9SBkkfUkz21ziUvjzxXHrQhGCBf8oXmQCGbYB9J1M:323705:WB11oxtxJA8ZaweyyxK6prmYXKB+9+b6/y2EId4HYQcwMeZrFbHsm58yGm7E9ptTxxRrOmNEyhZBFE8Nz+MJBA==",
"E9zscftrAswWYZwAm7o3YK4nD1cXmKdJBeX2r3D9zk7d:8bX9SBkkfUkz21ziUvjzxXHrQhGCBf8oXmQCGbYB9J1M:323548:1zrCoNmndLfdsWdppUabz7Z60Vc6t4wDZlgYCTg4pcSzrZ333ToqTpEugQC4x7/C3YEKWpv/5IVVPFyUdfJACA==",
"HJ7U5CeYLQZrP76yRP7WgHnMvJggxeTTYW8wDJDwf42f:8bX9SBkkfUkz21ziUvjzxXHrQhGCBf8oXmQCGbYB9J1M:323141:uy1Gl/cuV2Y8d8MwALNqLnIPzMvRm/eUf0E0JnjOSlrBLrwwXFsCAWO6xJ50QqC/tnA4iFiS+c/d3ay/HVryBw=="
],
"transactions": [],
"raw": […]
}~
```1.8ÉloïsÉloïshttps://git.duniter.org/nodes/typescript/duniter/-/issues/1410Manque les extras dans les génériques2020-06-12T00:15:42+02:00Stéphane VeyretManque les extras dans les génériquesJ'ai fait un peu trop d'élagage dans le Makefile. Maintenant, le répertoire `extra` n'est plus dans le livrable générique, ce qui empêche d'installer les scripts de démarrage automatique, la complétion bash, le raccourcis bureau, etc.
J...J'ai fait un peu trop d'élagage dans le Makefile. Maintenant, le répertoire `extra` n'est plus dans le livrable générique, ce qui empêche d'installer les scripts de démarrage automatique, la complétion bash, le raccourcis bureau, etc.
Je vais faire une nouvelle PR pour corriger cela.1.8https://git.duniter.org/nodes/typescript/duniter/-/issues/1407Missing .prettierignore2020-05-06T23:52:44+02:00Cédric MoreauMissing .prettierignoreWhen I run :
yarn format:check
I get all the `.d.ts` files.When I run :
yarn format:check
I get all the `.d.ts` files.1.8Cédric MoreauCédric Moreauhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1373Node 10 support + end of Node 8 support2020-04-30T21:49:57+02:00Cédric MoreauNode 10 support + end of Node 8 supportIf we officially support Node 10, then as consequence of #1372, we will have to stop support for Node <10.If we officially support Node 10, then as consequence of #1372, we will have to stop support for Node <10.1.8Cédric MoreauCédric Moreauhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1411Use permanent links in release assets2020-06-03T20:34:04+02:00Stéphane VeyretUse permanent links in release assetsL'URL pour récupérer un livrable dépend aujourd'hui du numéro de JOB qui l'a créé, ce qui n'est pas très pratique pour une procédure automatique. Il faudrait utiliser la fonctionnalité des liens permanents ajoutée dans la v12.9 de gitlab...L'URL pour récupérer un livrable dépend aujourd'hui du numéro de JOB qui l'a créé, ce qui n'est pas très pratique pour une procédure automatique. Il faudrait utiliser la fonctionnalité des liens permanents ajoutée dans la v12.9 de gitlab pour avoir une adresse fixe et propre : https://docs.gitlab.com/ee/user/project/releases/#permanent-links-to-release-assets1.8