duniter issueshttps://git.duniter.org/nodes/typescript/duniter/-/issues2017-11-28T16:49:17+01:00https://git.duniter.org/nodes/typescript/duniter/-/issues/1051Integrate valid TX when received invalid block2017-11-28T16:49:17+01:00Benoit LavenierIntegrate valid TX when received invalid blockVoici mon cas :
> - je viens de brancher Cesium sur mon noeud (duniter.fr)
> - j'ai passé 2 TX de paiement.
> - Aussitot les TX ont été inscrits dans un nouveau bloc par mon noeud, qu'il a ensuite émis.
> - mais un fork réseau s'e...Voici mon cas :
> - je viens de brancher Cesium sur mon noeud (duniter.fr)
> - j'ai passé 2 TX de paiement.
> - Aussitot les TX ont été inscrits dans un nouveau bloc par mon noeud, qu'il a ensuite émis.
> - mais un fork réseau s'est créé (les autre snoeuds ont rejetté mon bloc)
> Du coup, mes 2 TX, pourtant valides également pour la branche principale, restent bloqués... et ne sont pas visibles ailleurs que sur mon noeud.
Lorsque mon noeud sera à nouveau synchro, il ne va pas rediffuser les TX aux autres noeuds.
Bref, ne serait-ce pas une bonne idée de décapsuler les blocs invalides (redirigés vers la piscine, je crois), pour en prendre les TX, qui elles peuvent etre valides ?
En d'autres terme, un blocs invalid pourrait etre le véhicule de TX valides...https://git.duniter.org/nodes/typescript/duniter/-/issues/1060Update "contribuer-french.md"2017-11-28T16:49:17+01:00Cédric MoreauUpdate "contribuer-french.md"Le document est obsolète sur certains points : https://forum.duniter.org/t/git-readme-dead-link/2981/2Le document est obsolète sur certains points : https://forum.duniter.org/t/git-readme-dead-link/2981/2https://git.duniter.org/nodes/typescript/duniter/-/issues/1070Refactor PeeringService2017-11-28T16:49:17+01:00Cédric MoreauRefactor PeeringServiceAs asked by @Insoleet As asked by @Insoleet Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1071Refactor BlockGenerator2017-11-28T16:49:17+01:00Cédric MoreauRefactor BlockGeneratorThis is a mess. It's hard to read what is the WoT data inclusion in next block.This is a mess. It's hard to read what is the WoT data inclusion in next block.Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1083Improve block generation speed2017-11-28T16:49:16+01:00Cédric MoreauImprove block generation speedOn low configurations like a Raspberry PI, generating a block (the phase before proof) is VERY long.
This is a big handicap, sometimes a dozen of seconds, for these nodes.
It seems that the WoT data is what is long to generate:
...On low configurations like a Raspberry PI, generating a block (the phase before proof) is VERY long.
This is a big handicap, sometimes a dozen of seconds, for these nodes.
It seems that the WoT data is what is long to generate:
```
2017-08-23T13:38:05+00:00 - debug: It already exists a written certification from 34k6isdkoYZjcEvS3qZqATeTYjY1b3K1gLyW1K77Pea4 which is not chainable yet
2017-08-23T13:38:05+00:00 - debug: It already exists a written certification from DymYJziyjC9pyupKNxT9iukEKrnFSGNCLnxFQtSWJSg5 which is not chainable yet
2017-08-23T13:38:05+00:00 - debug: It already exists a written certification from 5SwfQubSat5SunNafCsunEGTY93nVM4kLSsuprNqQb6S which is not chainable yet
2017-08-23T13:38:05+00:00 - debug: It already exists a written certification from BqegkjBDibg8iUQQnqDrvGLhgcTYTxBnz19LUBNKRdeN which is not chainable yet
2017-08-23T13:38:05+00:00 - debug: It already exists a written certification from 4rWREtAxNS2L427f4vG2LafZNZ9ZLj3cvFFxGyrtFzGL which is not chainable yet
2017-08-23T13:38:06+00:00 - debug: It already exists a written certification from 5SwfQubSat5SunNafCsunEGTY93nVM4kLSsuprNqQb6S which is not chainable yet
2017-08-23T13:38:06+00:00 - debug: It already exists a written certification from GwhyPg6tiESpArzQ2oXXNq7aHPFwBHxp21Eqkf2fvRQV which is not chainable yet
2017-08-23T13:38:06+00:00 - debug: It already exists a written certification from GudqRDfrUYfweHkbscitHiJTBL3UMYejKu3Us4kP3ds9 which is not chainable yet
2017-08-23T13:38:06+00:00 - debug: It already exists a written certification from 78jhpprYkMNF6i5kQPXfkAVBpd2aqcpieNsXTSW4c21f which is not chainable yet
2017-08-23T13:38:06+00:00 - debug: It already exists a written certification from DfAT7wGnRG4c3vnCDSfF5CW8HkwLRL6bMb1ykQPiAgCX which is not chainable yet
```Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1085BUG - v1.5.5 - Duniter sync fails on clean instance2017-11-28T16:49:16+01:00florckBUG - v1.5.5 - Duniter sync fails on clean instanceI installed duniter 1.5.4 on a clean ubuntu 16.4 using the server .deb package.
First, unzip is not mentionned as a dependance, but the package installation failed first because unzip was missing. This is not the purpose of this bug.
...I installed duniter 1.5.4 on a clean ubuntu 16.4 using the server .deb package.
First, unzip is not mentionned as a dependance, but the package installation failed first because unzip was missing. This is not the purpose of this bug.
I did an autoconfig, then a network config.
When I started the sync with my node duniter.floth.fr 443 first step went well, but second failed with the following message:
Status: GOT chunck #17/185 from 4250 to 4499 on peer 88.162.208.159:25250/usr/bin/duniter: line 15: 26830 Killed $NODE "$DUNITER_DIR/bin/duniter" "$@"https://git.duniter.org/nodes/typescript/duniter/-/issues/1095UPnP ports are opened during automated tests2017-11-28T16:49:16+01:00Cédric MoreauUPnP ports are opened during automated testsI could see several ports opened during unit tests using UPnP.
That should not occur, it is a bug in the tests.I could see several ports opened during unit tests using UPnP.
That should not occur, it is a bug in the tests.https://git.duniter.org/nodes/typescript/duniter/-/issues/1099Have a dynamic stock of certifications2017-11-28T16:49:16+01:00Cédric MoreauHave a dynamic stock of certificationsThe discussion is here: https://forum.duniter.org/t/stock-de-certifications-dynamique/3232
For now this is still an under discussion feature.The discussion is here: https://forum.duniter.org/t/stock-de-certifications-dynamique/3232
For now this is still an under discussion feature.Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1100Allow certification cancelling2017-11-28T16:49:16+01:00Cédric MoreauAllow certification cancellingThe discussion is here: https://forum.duniter.org/t/annulation-de-certification/3233
It is still being discussed.The discussion is here: https://forum.duniter.org/t/annulation-de-certification/3233
It is still being discussed.Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1101Difficulties not updated with HEAD2017-11-28T16:49:16+01:00Cédric MoreauDifficulties not updated with HEAD*Created by: M5oul*
I noticed that the ID of the HEAD block issued by this ID is not displayed on `/blockchain/difficulties` when this ID was not on the current window. *Created by: M5oul*
I noticed that the ID of the HEAD block issued by this ID is not displayed on `/blockchain/difficulties` when this ID was not on the current window. Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1102WS2P: prevent JSON injection2017-11-28T16:49:16+01:00Cédric MoreauWS2P: prevent JSON injectionWS2P parses received JSON. We need to take a big care on the received JSON because it could carry invalid content.WS2P parses received JSON. We need to take a big care on the received JSON because it could carry invalid content.Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1120Message « Peer with zero endpoints that is not already known »2020-03-31T23:01:25+02:00Cédric MoreauMessage « Peer with zero endpoints that is not already known »It is displayed at error level. It can be info or even debug.It is displayed at error level. It can be info or even debug.Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1125First sync fail due to OOM process kill2017-11-28T16:49:17+01:00Cédric MoreauFirst sync fail due to OOM process kill*Created by: M5oul*
With v1.6.6, YunoHost package and 64bits, 512MB arch, first sync with web interface fail:
```bash
2017-09-27T15:00:18+00:00 - error: Error: connect ECONNREFUSED 83.115.9.217:10902
at Object.exports._errnoExce...*Created by: M5oul*
With v1.6.6, YunoHost package and 64bits, 512MB arch, first sync with web interface fail:
```bash
2017-09-27T15:00:18+00:00 - error: Error: connect ECONNREFUSED 83.115.9.217:10902
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
2017-09-27T15:00:18+00:00 - info: Getting chunck #202/224 from 50500 to 50749 on peer duniter.s-entraider.net:10901
2017-09-27T15:00:18+00:00 - info: GOT chunck #204/224 from 51000 to 51249 on peer 185.167.16.19:10901
2017-09-27T15:00:18+00:00 - info: AUGMENTED DOWNLOAD SLOTS! Now has 8 slots
2017-09-27T15:00:18+00:00 - info: Downloaded 8%, Applied 0%
2017-09-27T15:00:18+00:00 - info: Getting chunck #201/224 from 50250 to 50499 on peer duniter.adn.life:10901
2017-09-27T15:00:18+00:00 - info: Getting chunck #200/224 from 50000 to 50249 on peer g1.duniter.org:10901
2017-09-27T15:00:18+00:00 - info: GOT chunck #202/224 from 50500 to 50749 on peer duniter.s-entraider.net:10901
2017-09-27T15:00:18+00:00 - info: Deceleration = -0.8215361445783133 (118.5/664), AddedNodePercent = 0.125
2017-09-27T15:00:18+00:00 - info: Getting chunck #199/224 from 49750 to 49999 on peer duniter.s-entraider.net:10901
2017-09-27T15:00:18+00:00 - info: GOT chunck #199/224 from 49750 to 49999 on peer duniter.s-entraider.net:10901
2017-09-27T15:00:18+00:00 - info: AUGMENTED DOWNLOAD SLOTS! Now has 9 slots
2017-09-27T15:00:18+00:00 - info: Getting chunck #198/224 from 49500 to 49749 on peer duniter.s-entraider.net:10901
2017-09-27T15:00:19+00:00 - info: Getting chunck #197/224 from 49250 to 49499 on peer duniter.help-web-low.fr:8999
2017-09-27T15:00:19+00:00 - info: GOT chunck #200/224 from 50000 to 50249 on peer g1.duniter.org:10901
2017-09-27T15:00:19+00:00 - info: Deceleration = 0.6390101892285298 (187.66666666666666/114.5), AddedNodePercent = 0.1111111111111111
2017-09-27T15:00:19+00:00 - info: REDUCED DOWNLOAD SLOT! Now has 8 slots
2017-09-27T15:00:19+00:00 - info: Downloaded 9%, Applied 0%
2017-09-27T15:00:19+00:00 - info: GOT chunck #198/224 from 49500 to 49749 on peer duniter.s-entraider.net:10901
2017-09-27T15:00:19+00:00 - info: AUGMENTED DOWNLOAD SLOTS! Now has 9 slots
```
The node is not running after that.
Tried a second time:
```bash
2017-09-27T15:07:29+00:00 - info: AUGMENTED DOWNLOAD SLOTS! Now has 2 slots
2017-09-27T15:07:29+00:00 - warn: Chunk #224 is COMPLETE from duniter.aquilenet.fr:10901
2017-09-27T15:07:29+00:00 - warn: Chunk #223 is COMPLETE from filesystem:blockchain
2017-09-27T15:07:29+00:00 - info: Downloaded 1%, Applied 0%
2017-09-27T15:07:29+00:00 - warn: Chunk #222 is COMPLETE from filesystem:blockchain
2017-09-27T15:07:29+00:00 - warn: Chunk #221 is COMPLETE from filesystem:blockchain
2017-09-27T15:07:29+00:00 - info: Downloaded 2%, Applied 0%
2017-09-27T15:07:29+00:00 - warn: Chunk #220 is COMPLETE from filesystem:blockchain
2017-09-27T15:07:30+00:00 - warn: Chunk #219 is COMPLETE from filesystem:blockchain
2017-09-27T15:07:30+00:00 - info: Downloaded 3%, Applied 0%
2017-09-27T15:07:30+00:00 - warn: Chunk #218 is COMPLETE from filesystem:blockchain
2017-09-27T15:07:30+00:00 - warn: Chunk #217 is COMPLETE from filesystem:blockchain
2017-09-27T15:07:30+00:00 - info: Downloaded 4%, Applied 0%
2017-09-27T15:07:30+00:00 - warn: Chunk #216 is COMPLETE from filesystem:blockchain
2017-09-27T15:07:30+00:00 - info: Getting chunck #215/224 from 53750 to 53999 on peer remuniter.cgeek.fr:16120
2017-09-27T15:07:30+00:00 - info: Getting chunck #214/224 from 53500 to 53749 on peer duniter.floth.fr:80
2017-09-27T15:07:30+00:00 - info: GOT chunck #214/224 from 53500 to 53749 on peer duniter.floth.fr:80
2017-09-27T15:07:30+00:00 - info: Deceleration = 1.4570135746606336 (543/221), AddedNodePercent = 0.5
2017-09-27T15:07:30+00:00 - info: REDUCED DOWNLOAD SLOT! Now has 1 slots
2017-09-27T15:07:35+00:00 - info: GOT chunck #215/224 from 53750 to 53999 on peer remuniter.cgeek.fr:16120
2017-09-27T15:07:35+00:00 - info: AUGMENTED DOWNLOAD SLOTS! Now has 2 slots
2017-09-27T15:07:35+00:00 - warn: Chunk #215 is COMPLETE from remuniter.cgeek.fr:16120
2017-09-27T15:07:37+00:00 - warn: Chunk #214 is COMPLETE from duniter.floth.fr:80
2017-09-27T15:07:38+00:00 - info: Downloaded 5%, Applied 0%
2017-09-27T15:07:39+00:00 - info: Getting chunck #213/224 from 53250 to 53499 on peer duniter.qbuissondebon.info:8999
^Croot@moul:~# duniter status
Duniter is not running.
```
- From CLI:
```bash
Progress:
Download: [|| ] 13 %
Apply: [ ] 0 %
Status: GOT chunck #191/224 from 47750 to 47999 on peer duniter.silibre.com:80/usr/bin/duniter: line 15: 14475 Killed $NODE "$DUNITER_DIR/bin/duniter" "$@"
```
Ok, finally, it's OOM process kill.Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1127'duniter logs' command takes too much RAM2017-11-28T16:49:17+01:00Cédric Moreau'duniter logs' command takes too much RAM*Created by: M5oul*
`duniter logs` is taking almost 100MB of memory.
![duniter_logs_ram_res](https://user-images.githubusercontent.com/4758871/30973770-4154a776-a46e-11e7-92aa-4a0c7eaf6060.png)
That is too much to display logs.
A...*Created by: M5oul*
`duniter logs` is taking almost 100MB of memory.
![duniter_logs_ram_res](https://user-images.githubusercontent.com/4758871/30973770-4154a776-a46e-11e7-92aa-4a0c7eaf6060.png)
That is too much to display logs.
A `grep` is much more lightweight!Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1130PoW stopped2017-11-28T16:49:17+01:00Cédric MoreauPoW stopped*Created by: M5oul*
Node v1.6.6 stops calculating blocks and display `Out of fork window` warning:
```bash
2017-09-29T12:57:29+00:00 - info: ✘ PEER 5fPevx21
2017-09-29T12:57:29+00:00 - error: httpCode=400, ucode=2023, message=Peer d...*Created by: M5oul*
Node v1.6.6 stops calculating blocks and display `Out of fork window` warning:
```bash
2017-09-29T12:57:29+00:00 - info: ✘ PEER 5fPevx21
2017-09-29T12:57:29+00:00 - error: httpCode=400, ucode=2023, message=Peer document already known
2017-09-29T12:57:29+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:30+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:30+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:31+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:31+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:32+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:33+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:33+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:34+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:34+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:35+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:35+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:36+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:36+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:37+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:38+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:38+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:39+00:00 - warn: ESOCKETTIMEDOUT
2017-09-29T12:57:39+00:00 - info: Peer DJQjWdkUB9YWzGRPTjPCdGgC5pBx6CA24Dghu6NNvpuH unreachable: now considered as DOWN.
2017-09-29T12:57:39+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:39+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:40+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:40+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
2017-09-29T12:57:41+00:00 - warn: httpCode=400, ucode=2501, message=Out of fork window
```
The node is well on current window as its HEAD is late of one block from network pool HEAD.Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1136HTTP API: "\r\n"2017-11-28T16:49:17+01:00Cédric MoreauHTTP API: "\r\n"https://forum.duniter.org/t/doc-protocol-example-tx-format/3325/6https://forum.duniter.org/t/doc-protocol-example-tx-format/3325/6https://git.duniter.org/nodes/typescript/duniter/-/issues/1143Refactor `parsers` files2017-11-28T16:49:17+01:00Cédric MoreauRefactor `parsers` filesAll the parsing files would need a complete rewriting to allow a clearer implementation, with explicit manipulation of flow processing, which we could easily test component by component.
These files are here: https://github.com/dunite...All the parsing files would need a complete rewriting to allow a clearer implementation, with explicit manipulation of flow processing, which we could easily test component by component.
These files are here: https://github.com/duniter/duniter/tree/dev/app/lib/common-libs/parsersHorizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1150OpenBSD build2018-01-24T22:56:24+01:00Cédric MoreauOpenBSD build*Created by: B4rb3rouss*
Hello,
Do you plan an OpenBSD build, or any advice to compile duniter on this platform?
Regards.*Created by: B4rb3rouss*
Hello,
Do you plan an OpenBSD build, or any advice to compile duniter on this platform?
Regards.Horizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1151ws2p-public doesn't work if ws2p-private is disabled2018-12-08T16:02:08+01:00Éloïsws2p-public doesn't work if ws2p-private is disabledThe ws2p endpoint is not published if ws2p-private is disabledThe ws2p endpoint is not published if ws2p-private is disabledHorizonhttps://git.duniter.org/nodes/typescript/duniter/-/issues/1152Change tx sandbox size2020-10-04T18:47:27+02:00ÉloïsChange tx sandbox sizehttps://forum.duniter.org/t/gbot-feeback-on-g1-test/3400/5?u=eloishttps://forum.duniter.org/t/gbot-feeback-on-g1-test/3400/5?u=elois1.10