aboutsummaryrefslogtreecommitdiffstats
path: root/Running--a-BP-node-for-Testnet.md
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-16 20:51:09 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-16 20:51:09 +0800
commitb6e5e7c15e40213452c364f5555029a6aca9aeec (patch)
tree2be5aa971d3e15ff1b1f718ca0fab8efcd7db62f /Running--a-BP-node-for-Testnet.md
parentce6009107fdf259bdb7bd90d2e3984ad83ccacfa (diff)
downloaddexon-wiki-b6e5e7c15e40213452c364f5555029a6aca9aeec.tar
dexon-wiki-b6e5e7c15e40213452c364f5555029a6aca9aeec.tar.gz
dexon-wiki-b6e5e7c15e40213452c364f5555029a6aca9aeec.tar.bz2
dexon-wiki-b6e5e7c15e40213452c364f5555029a6aca9aeec.tar.lz
dexon-wiki-b6e5e7c15e40213452c364f5555029a6aca9aeec.tar.xz
dexon-wiki-b6e5e7c15e40213452c364f5555029a6aca9aeec.tar.zst
dexon-wiki-b6e5e7c15e40213452c364f5555029a6aca9aeec.zip
Created Running a BP node for Testnet (markdown)
Diffstat (limited to 'Running--a-BP-node-for-Testnet.md')
-rw-r--r--Running--a-BP-node-for-Testnet.md49
1 files changed, 49 insertions, 0 deletions
diff --git a/Running--a-BP-node-for-Testnet.md b/Running--a-BP-node-for-Testnet.md
new file mode 100644
index 0000000..097f922
--- /dev/null
+++ b/Running--a-BP-node-for-Testnet.md
@@ -0,0 +1,49 @@
+# Run DEXON
+
+Instructions to run a DEXON block proposer node.
+
+## Generate Node Key
+
+A node key is required to operate a BP node. Run the following command to
+generate a node key:
+
+ docker run -v $PWD:/mnt -it dexonfoundation/dexon-tools nodekey generate /mnt/node.key
+
+This show output content similar to the following
+
+ Node Address: 0x93aA8C9C77De627E665F0b4015B7271B9Be89E83
+ Public Key: 0x046272a157cbffa00677be00b08c9d47f295539b07e53360754579ad5e933a638ba58dcf850484e7d40b8bc163a920082b2500ee54968db7155c6231c7e4eed592
+
+A file `node.key` can be found under current working directory. `node.key` is
+very important as it contains the node private key. Please save this file
+securely.
+
+## Register your node
+
+1. Goto the [Governance contract page on DEXSCAN](https://testnet.dexscan.org/address/0x63751838D6485578B23e8b051d40861eCC416794).
+2. Navigate to the write tab and select `register` from the dropdown menu.
+3. Fill in the information like below:
+
+![Register in Governance Contract Page](https://i.imgur.com/ZRCwrdn.png)
+
+4. Hit send to reigster your node.
+
+After this your node should be staked.
+
+Note that after staked, the configuration will start to take effect after 2
+rounds (2400 blocks).
+
+## Start the BP node
+
+Use the following command to start the BP node:
+
+ docker run -v $PWD:/mnt -it dexonfoundation/dexon \
+ --testnet \
+ --bp \
+ --nodekey=/mnt/node.key \
+ --datadir=/mnt/datadir \
+ --syncmode=full \
+ --cache=1024 \
+ --gcmode=archive
+
+Please make sure you have enough diskspace in the current working directory.