Commit 3b5f237a authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] #879 Default port should be 10901

parent abc7b92d
......@@ -5,7 +5,7 @@ Duniter exploits an SQLite database to store the blockchain and newcoming data.
You can easily set it up and explore it with the following steps:
1. [Install your node](./install-a-node.md)
2. Launch Duniter and connect it to an existing currency (for example on `duniter.org` port `8999`)
2. Launch Duniter and connect it to an existing currency (for example on `duniter.org` port `10901`)
3. Shut down Duniter
4. Use your favorite SQLite browser (for example [Sqliteman](http://sqliteman.yarpen.cz/)) and open the file under `~/.config/duniter/duniter_default/duniter.db`
......
......@@ -9,7 +9,7 @@ WORKDIR /home/duser
RUN curl -kL https://raw.githubusercontent.com/duniter/duniter/master/install.sh | bash
EXPOSE 8999
EXPOSE 10901
ADD go /home/duser/go
......
......@@ -13,7 +13,7 @@ docker build -t="duniter" .
Without your indentity
```sh
docker run -p 8999:8999 \
docker run -p 10901:10901 \
-e "DUNITER_URL=cgeek.fr" -e "DUNITER_PORT=9330" \
-dt duniter
````
......@@ -21,7 +21,7 @@ docker run -p 8999:8999 \
With your indentity
```sh
docker run -p 8999:8999 \
docker run -p 10901:10901 \
-e "DUNITER_URL=cgeek.fr" -e "DUNITER_PORT=9330" \
-e "DUNITER_SALT=<your_key_salt>" -e "DUNITER_PASSWD=<your_passwd>" \
-dt duniter
......
......@@ -161,7 +161,7 @@ describe("Document pool currency", function() {
it('Peer with wrong currency should be rejected', () => co(function*() {
try {
const peer = yield toc2.makePeer(['BASIC_MERKLED_API localhost 8999'], {
const peer = yield toc2.makePeer(['BASIC_MERKLED_API localhost 10901'], {
currency: "wrong_currency"
});
yield s2.postPeer(peer);
......
......@@ -149,13 +149,13 @@ function Node (dbName, options) {
duniter: {
config: {
onLoading: (conf, program) => co(function*() {
options.port = options.port || 8999;
options.port = options.port || 10901;
options.ipv4 = options.ipv4 || "127.0.0.1";
options.ipv6 = options.ipv6 || null;
options.remotehost = options.remotehost || null;
options.remoteipv4 = options.remoteipv4 || null;
options.remoteipv6 = options.remoteipv6 || null;
options.remoteport = options.remoteport || 8999;
options.remoteport = options.remoteport || 10901;
const overConf = Configuration.statics.complete(options);
_.extend(conf, overConf);
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment