duniter issueshttps://git.duniter.org/nodes/typescript/duniter/-/issues2018-01-27T07:27:45+01:00https://git.duniter.org/nodes/typescript/duniter/-/issues/908Enhance synchronization speed2018-01-27T07:27:45+01:00Cédric MoreauEnhance synchronization speedSee PM of jytou about SQLite access.See PM of jytou about SQLite access.1.3.0Cédric MoreauCédric Moreauhttps://git.duniter.org/nodes/typescript/duniter/-/issues/884Installation optimisation2018-01-27T07:27:45+01:00Cédric MoreauInstallation optimisation*Created by: galuel*
duniter webtstart avec une icône qui lance le navigateur sur localhost:9220 devrait pas peser plus que 82 MB...et fait tout ce que fait duniter-desktop qui pèse 128 MB soit 56% de plus !
duniter-desktop me semble...*Created by: galuel*
duniter webtstart avec une icône qui lance le navigateur sur localhost:9220 devrait pas peser plus que 82 MB...et fait tout ce que fait duniter-desktop qui pèse 128 MB soit 56% de plus !
duniter-desktop me semble donc une release inutile et lourde, la version de base avec l'option webstart contient tout le nécessaire, on pourrait donc :
- ne plus avoir de version "desktop" mais une seule version à installer
- livrer simplement une icône de lancement qui contienne la commande :
`duniter webstart && firefox localhost:9220`
ou équivalent...1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/862Full sync on ARM board takes too much time2018-01-27T07:27:45+01:00Cédric MoreauFull sync on ARM board takes too much time*Created by: M5oul*
With Ğtest, with almost 10.000 blocks, synchronization takes at least one hour.
Download is very fast, but blockchain check takes too much time.
Only one process is running on one CPU core and it's not taking all c...*Created by: M5oul*
With Ğtest, with almost 10.000 blocks, synchronization takes at least one hour.
Download is very fast, but blockchain check takes too much time.
Only one process is running on one CPU core and it's not taking all core available load.
It's between 30 and ~70 %.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/969Add a `--slow` option for `sync` command2018-01-27T07:27:45+01:00Cédric MoreauAdd a `--slow` option for `sync` commandOn very low connections (< 100 Kb/s), the sync will likely fail at some point.
But it could work if the number of download slots was limited to 1. I've tested it, it works.
Also, there is a bug on local storage of downloaded chunks...On very low connections (< 100 Kb/s), the sync will likely fail at some point.
But it could work if the number of download slots was limited to 1. I've tested it, it works.
Also, there is a bug on local storage of downloaded chunks: they are not stored on a brand new installation, so when the download eventually fail, we have to start the whole download again.
Diagnostic: replace `localNumber == 0` by `localNumber <= 0` in the `downloadChunk` function.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/939Error page on web-ui installed on a dev env2018-01-27T07:27:45+01:00Cédric MoreauError page on web-ui installed on a dev env*Created by: M5oul*
I installed `duniter-ui` on my dev environment with https://github.com/duniter/duniter/issues/937#issuecomment-291920909 solution.
I get a the error page going on `localhost:9220`.*Created by: M5oul*
I installed `duniter-ui` on my dev environment with https://github.com/duniter/duniter/issues/937#issuecomment-291920909 solution.
I get a the error page going on `localhost:9220`.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/992Change base58 lib2018-01-27T07:27:45+01:00Cédric MoreauChange base58 libToday we use an internal lib, the sources are in Duniter sources.
We may use an external one, such as https://github.com/cryptocoinjs/bs58.
We could put this library in `duniter-common` and export it.Today we use an internal lib, the sources are in Duniter sources.
We may use an external one, such as https://github.com/cryptocoinjs/bs58.
We could put this library in `duniter-common` and export it.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/918Add external modules support2018-01-27T07:27:45+01:00Cédric MoreauAdd external modules supportThe idea is to arbitrarily add a new module to Duniter, another one than the "duniter-(keypair, bma, crawler, prover)" module suite.
The goal of this ticket is to allow an advanced user to plug an external module of its will *to its d...The idea is to arbitrarily add a new module to Duniter, another one than the "duniter-(keypair, bma, crawler, prover)" module suite.
The goal of this ticket is to allow an advanced user to plug an external module of its will *to its duniter installation*, under certain conditions.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/972Many [object Object] on WoT crawling2018-01-27T07:27:45+01:00Cédric MoreauMany [object Object] on WoT crawling*Created by: M5oul*
```bash
2017-05-10T19:33:39+02:00 - info: ⬇ CERT ArcfiCb3FWBonodGtiznCdBdCH5EJTLUdAFHR4nRM4zf block#13785 -> florck
2017-05-10T19:33:39+02:00 - info: ✘ CERT ArcfiCb3FWBonodGtiznCdBdCH5EJTLUdAFHR4nRM4zf [object Obje...*Created by: M5oul*
```bash
2017-05-10T19:33:39+02:00 - info: ⬇ CERT ArcfiCb3FWBonodGtiznCdBdCH5EJTLUdAFHR4nRM4zf block#13785 -> florck
2017-05-10T19:33:39+02:00 - info: ✘ CERT ArcfiCb3FWBonodGtiznCdBdCH5EJTLUdAFHR4nRM4zf [object Object]
2017-05-10T19:33:39+02:00 - info: ⬇ CERT 4DVWFcDQFm6XEkz56HPFYX7QA8QW2z4pxsJhmUpWw94W block#13908 -> florck
2017-05-10T19:33:39+02:00 - info: ✘ CERT 4DVWFcDQFm6XEkz56HPFYX7QA8QW2z4pxsJhmUpWw94W [object Object]
2017-05-10T19:33:40+02:00 - info: ⬇ IDTY 3BTGo9e1KtHfgHQSEXvyie8RBGDtgSMuGaB8EVAc5GeK Ekiben
2017-05-10T19:33:40+02:00 - info: ⬇ CERT 5kpscasQx9p45TXJxtGV17G1Fw9URmMeqouz3x8FNYpB block#15221 -> Ekiben
2017-05-10T19:33:40+02:00 - info: ✘ CERT 5kpscasQx9p45TXJxtGV17G1Fw9URmMeqouz3x8FNYpB [object Object]
2017-05-10T19:33:40+02:00 - info: ⬇ CERT 5kpscasQx9p45TXJxtGV17G1Fw9URmMeqouz3x8FNYpB block#15228 -> Ekiben
2017-05-10T19:33:40+02:00 - info: ✘ CERT 5kpscasQx9p45TXJxtGV17G1Fw9URmMeqouz3x8FNYpB [object Object]
2017-05-10T19:33:40+02:00 - info: ⬇ CERT 5kpscasQx9p45TXJxtGV17G1Fw9URmMeqouz3x8FNYpB block#15247 -> Ekiben
2017-05-10T19:33:40+02:00 - info: ✘ CERT 5kpscasQx9p45TXJxtGV17G1Fw9URmMeqouz3x8FNYpB [object Object]
2017-05-10T19:33:40+02:00 - info: ⬇ CERT 5kpscasQx9p45TXJxtGV17G1Fw9URmMeqouz3x8FNYpB block#15416 -> Ekiben
2017-05-10T19:33:40+02:00 - info: ✘ CERT 5kpscasQx9p45TXJxtGV17G1Fw9URmMeqouz3x8FNYpB [object Object]
2017-05-10T19:33:40+02:00 - info: ⬇ CERT EhjcQYHFyFU4wzznaaNvjibKbkpWwtjEQrLTXZuPf9wK block#15627 -> Ekiben
2017-05-10T19:33:40+02:00 - info: ✘ CERT EhjcQYHFyFU4wzznaaNvjibKbkpWwtjEQrLTXZuPf9wK [object Object]
2017-05-10T19:33:41+02:00 - info: ⬇ CERT 5WD4WSHE96ySreSwQFXPqaKaKcwboRNApiPHjPWB6V9C block#15653 -> Ekiben
2017-05-10T19:33:41+02:00 - info: ✘ CERT 5WD4WSHE96ySreSwQFXPqaKaKcwboRNApiPHjPWB6V9C [object Object]
2017-05-10T19:33:46+02:00 - info: ⬇ 3BTGo9e1KtHfgHQSEXvyie8RBGDtgSMuGaB8EVAc5GeK IN
2017-05-10T19:33:46+02:00 - info: ⬇ IDTY GwhyPg6tiESpArzQ2oXXNq7aHPFwBHxp21Eqkf2fvRQV YanickChareille
2017-05-10T19:33:46+02:00 - info: ⬇ CERT 4iwyu6St2K7K4TrsbS7JvjUqT2ndw1vXFXWE3ttki6uk block#15377 -> YanickChareille
2017-05-10T19:33:46+02:00 - info: ✘ CERT 4iwyu6St2K7K4TrsbS7JvjUqT2ndw1vXFXWE3ttki6uk [object Object]
2017-05-10T19:33:46+02:00 - info: ⬇ CERT 78jhpprYkMNF6i5kQPXfkAVBpd2aqcpieNsXTSW4c21f block#15524 -> YanickChareille
2017-05-10T19:33:46+02:00 - info: ✘ CERT 78jhpprYkMNF6i5kQPXfkAVBpd2aqcpieNsXTSW4c21f [object Object]
2017-05-10T19:33:46+02:00 - info: ⬇ CERT 38MEAZN68Pz1DTvT3tqgxx4yQP6snJCQhPqEFxbDk4aE block#15825 -> YanickChareille
2017-05-10T19:33:46+02:00 - info: ✘ CERT 38MEAZN68Pz1DTvT3tqgxx4yQP6snJCQhPqEFxbDk4aE [object Object]
2017-05-10T19:33:47+02:00 - info: ⬇ CERT 79XB4UPxMJsURb2PbiKQDAEUH6fV557ZuS6Nin2pp7ji block#17097 -> YanickChareille
2017-05-10T19:33:47+02:00 - info: ✘ CERT 79XB4UPxMJsURb2PbiKQDAEUH6fV557ZuS6Nin2pp7ji [object Object]
```1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/994Sandbox pulling is too much frequent2018-01-27T07:27:44+01:00Cédric MoreauSandbox pulling is too much frequentAs said in #968. We could have only 1 sync / day, because the push mechanism should be enough. Also each time a node successfully pulls a new document, it shares it again through the push mechanism.
So 1 per day should really be enough.As said in #968. We could have only 1 sync / day, because the push mechanism should be enough. Also each time a node successfully pulls a new document, it shares it again through the push mechanism.
So 1 per day should really be enough.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/993Cannot have `duniter` without `node-pre-gyp` module2018-01-27T07:27:44+01:00Cédric MoreauCannot have `duniter` without `node-pre-gyp` moduleFor example, this package.json does not work with `yarn`:
```json
{
"name": "hello-from-duniter",
"version": "1.0.1",
"main": "index.js",
"license": "MIT",
"dependencies": {
"duniter": "1.2.x"
}
}
```
```bas...For example, this package.json does not work with `yarn`:
```json
{
"name": "hello-from-duniter",
"version": "1.0.1",
"main": "index.js",
"license": "MIT",
"dependencies": {
"duniter": "1.2.x"
}
}
```
```bash
$ yarn
yarn install v0.24.5
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error Couldn't find a package.json file in "/home/cgeek/dev/hello-from-duniter/node_modules/naclb/node_modules/node-pre-gyp"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
```
The problem seems fixed in recent updates of `node-pre-gyp`: https://github.com/mapbox/node-pre-gyp/issues/2621.3.0Cédric MoreauCédric Moreauhttps://git.duniter.org/nodes/typescript/duniter/-/issues/942Remove server.lib references2018-01-27T07:27:44+01:00Cédric MoreauRemove server.lib referencesThis syntax in modules was a migration facility at the time we exploded duniter specific stuff into modules.
But the injection should not be done via `server.lib`, but by adding other modules or enriching thoses existing.This syntax in modules was a migration facility at the time we exploded duniter specific stuff into modules.
But the injection should not be done via `server.lib`, but by adding other modules or enriching thoses existing.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/952Generate releases using local VMs2018-01-27T07:27:44+01:00Cédric MoreauGenerate releases using local VMsInstead of relying on Travis & AppVeyor for releases, we could use local VMs which could be created using Vagrant scripts for example, so we can reproduce easily these VMs anywhere.Instead of relying on Travis & AppVeyor for releases, we could use local VMs which could be created using Vagrant scripts for example, so we can reproduce easily these VMs anywhere.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/995Simulate next inclusion of newcomers2018-01-27T07:27:44+01:00Cédric MoreauSimulate next inclusion of newcomersWhen we look at https://g1-monit.elois.org/willMembers?lg=fr, we always wonder which combinations will be used by Duniter to include new members.
It would be useful to be able to simulate this, by fixing the medianTime value of curren...When we look at https://g1-monit.elois.org/willMembers?lg=fr, we always wonder which combinations will be used by Duniter to include new members.
It would be useful to be able to simulate this, by fixing the medianTime value of current block temporarily, not in the DB.
For example, with this command:
```bash
duniter gen-next --show --check --at 1495731720
```
This would simulate the next block with a simulation that our current `medianTime = 1495731720`, which is 2017/5/25 19:02:00.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/951`reset all` does not remove the keyring file2018-01-27T07:27:44+01:00Cédric Moreau`reset all` does not remove the keyring file1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/953Dissociate NPM release from Binaries releases2018-01-27T07:27:44+01:00Cédric MoreauDissociate NPM release from Binaries releasesSo duniter module can be released separately on will, without requiring to make an official release.So duniter module can be released separately on will, without requiring to make an official release.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/998Change install.sh2018-01-27T07:27:44+01:00Cédric MoreauChange install.shWe must replace the modules install lines:
```bash
$NODE $NPM install
$NODE $NPM install duniter-bma@@1.1.2 --save --production
$NODE $NPM install duniter-crawler@1.1.4 --save --production
$NODE $NPM install duniter-keypair@1.1.3 ...We must replace the modules install lines:
```bash
$NODE $NPM install
$NODE $NPM install duniter-bma@@1.1.2 --save --production
$NODE $NPM install duniter-crawler@1.1.4 --save --production
$NODE $NPM install duniter-keypair@1.1.3 --save --production
$NODE $NPM install duniter-prover@1.1.2 --save --production
$NODE $NPM install duniter-ui@1.1.5 --production --save
```
By:
```bash
$NODE $NPM install
$NODE -e "const deps = require('./package.json').peerDependencies; Object.keys(deps).forEach(k => console.log(k + \"@\" + deps[k]))" | xargs $NODE $NPM install --save --production
```1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/977Move fast block appliance to duniter core2018-01-27T07:27:44+01:00Cédric MoreauMove fast block appliance to duniter coreCurrently the fast appliance logic is in duniter-crawler, but that's a flaw: if this module implements incorrectly the duniter core rules, all the network might have inconsistencies.
It is better to give this work to duniter core.Currently the fast appliance logic is in duniter-crawler, but that's a flaw: if this module implements incorrectly the duniter core rules, all the network might have inconsistencies.
It is better to give this work to duniter core.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/999Command `start` does not work for g1-test2018-01-27T07:27:44+01:00Cédric MoreauCommand `start` does not work for g1-testI've tried to have a working g1-test node on duniter.org server, using Duniter sources. The `direct_start` command works very well, but not `start` command. Maybe this is linked to the fact I have 2 nodes on the same machine.I've tried to have a working g1-test node on duniter.org server, using Duniter sources. The `direct_start` command works very well, but not `start` command. Maybe this is linked to the fact I have 2 nodes on the same machine.1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/982Publish the announce of 1.3.0 on the blog2018-01-27T07:27:44+01:00Cédric MoreauPublish the announce of 1.3.0 on the blogFrom now on, the new versions will be displayed on the blog:
* https://duniter.org/fr
* https://duniter.org/en (when the site is ready)From now on, the new versions will be displayed on the blog:
* https://duniter.org/fr
* https://duniter.org/en (when the site is ready)1.3.0https://git.duniter.org/nodes/typescript/duniter/-/issues/1001Signature does not match2018-01-27T07:27:44+01:00Cédric MoreauSignature does not matchThis error seems to be raised by several nodes these days. However, if we copy the DB to another computer, then the issue cannot be reproduced. We can eventually reproduce the issue even when restarting the node, but the priviledged meth...This error seems to be raised by several nodes these days. However, if we copy the DB to another computer, then the issue cannot be reproduced. We can eventually reproduce the issue even when restarting the node, but the priviledged method to debug this issue is to debug with node-inspector + signal SIGUSR1.1.3.0