- May 17, 2021
- May 16, 2021
-
-
Éloïs authored
-
Éloïs authored
-
Gilles Filippini authored
`P2pCandidate.dlPromise` promise doesn't resolve on download errors such as socket timeouts. Each time such an error occurs, the node is lost for the sync because the 'this.dlPromise.isResolved()' check used for testing the node's availability never succeeds anymore for this node. This patch hardens the blocks downloading in two ways: * Retrying the download up to 5 times when the number of returned blocks is different from what was requested * On failure returns an empty block array so that the dlPromise is resolved and the node failure could be handled as expected at the P2PSyncDownloader level triggering the `P2pCandidate.addFailure()` function.
-
- May 15, 2021
- May 14, 2021
- May 13, 2021
-
-
Gilles Filippini authored
-
Gilles Filippini authored
-
Gilles Filippini authored
Add new Docker environment variable: `DUNITER_PEER_HOST` (default to `DUNITER_SYNC_HOST`). When `conf.json` doesn't exist and `DUNITER_PEER_HOST` designs a remote node, bootstrap currency parameters from this node into the configuration file. When `peers.db` doesn't exist and `DUNITER_PEER_HOST` designs a remote node, use `sync $DUNITER_SYNC_HOST --only-peers` to have its endpoints into `peers.db`.
-
Gilles Filippini authored
- May 12, 2021
-
-
Gilles Filippini authored
And force option '--home /var/lib/duniter' in the wrapper when not given. It should help when running an interactive shell into the instance.
-
Éloïs authored
-
- May 11, 2021
-
-
Gilles Filippini authored
When 'sync' is called with option '--only-peers', the path to function 'RemoteSynchronizer.getPeers()' is not the same as the default. In this case we need to ensure that 'init()' was properly called and proceed without a watcher.
-
- May 10, 2021
-
-
Éloïs authored
-
Éloïs authored
-
Éloïs authored
-
Gilles Filippini authored
Moving `conf.json` from volume `/var/lib/duniter` to volume `/etc/duniter` was a mistake. It creates to much many corner cases where one can lose their configuration file. This commit partly reverts fd0bbe67 by bringing conf.json back into volume `/var/lib/duniter`.
-
Gilles Filippini authored
Was /duniter/duniter.
-
Gilles Filippini authored
Spare one process.
-
Gilles Filippini authored
-
- May 09, 2021
-
-
Gilles Filippini authored
-