From 3b5f237a6f36d5d6590823ce3fd07c0bed3268c8 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Thu, 16 Mar 2017 18:29:24 +0100
Subject: [PATCH] [enh] #879 Default port should be 10901

---
 doc/database.md                        | 2 +-
 docker/Dockerfile                      | 2 +-
 docker/README.md                       | 4 ++--
 test/integration/documents-currency.js | 2 +-
 test/integration/tools/node.js         | 4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/doc/database.md b/doc/database.md
index 82a385503..ca899684d 100644
--- a/doc/database.md
+++ b/doc/database.md
@@ -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`
 
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 6218444e3..abdd518c5 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -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
 
diff --git a/docker/README.md b/docker/README.md
index 6aecbc41e..e9f53fb19 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -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
diff --git a/test/integration/documents-currency.js b/test/integration/documents-currency.js
index 65c7cf05c..4324a8d1e 100644
--- a/test/integration/documents-currency.js
+++ b/test/integration/documents-currency.js
@@ -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);
diff --git a/test/integration/tools/node.js b/test/integration/tools/node.js
index 3d90d172d..545293678 100644
--- a/test/integration/tools/node.js
+++ b/test/integration/tools/node.js
@@ -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);
             })
-- 
GitLab