From 789fccd86e42f35f2b2b883aa1c71891ef9c8e2d Mon Sep 17 00:00:00 2001 From: Daniel McNally Date: Fri, 10 Aug 2018 09:32:58 -0400 Subject: [PATCH] update readme --- bin/xud | 4 ++++ instructions-for-devs.md | 29 +++++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/bin/xud b/bin/xud index 5cbde617b..1c3873fce 100755 --- a/bin/xud +++ b/bin/xud @@ -17,6 +17,10 @@ const { argv } = require('yargs') describe: 'Hostname for SQL database', type: 'string', }, + 'db.password': { + describe: 'Password for SQL database', + type: 'string', + }, 'db.port': { describe: 'Port for SQL database', type: 'number', diff --git a/instructions-for-devs.md b/instructions-for-devs.md index 99473b242..42780b6e5 100644 --- a/instructions-for-devs.md +++ b/instructions-for-devs.md @@ -54,6 +54,7 @@ Options: --xudir, -x Data directory for xud [string] --db.database SQL database name [string] --db.host Hostname for SQL database [string] + --db.password Password for SQL database [string] --db.port Port for SQL database [number] --db.username User for SQL database [string] --lnd.certpath Path to the SSL certificate for lnd [string] @@ -61,6 +62,7 @@ Options: --lnd.host Host of the lnd gRPC interface [string] --lnd.macaroonpath Path of the admin macaroon for lnd [string] --lnd.port Port of the lnd gRPC interface [number] + --p2p.addresses String array of reachable addresses [array] --p2p.listen Listen for incoming peers [boolean] --p2p.port, -p Port to listen for incoming peers [number] --raiden.disable Disable raiden integration [boolean] @@ -81,18 +83,20 @@ xucli Commands: xucli cancelorder cancel an order - xucli connect [port] connect to an xu node - xucli disconnect [port] disconnect from an xu node + xucli connect connect to an xu node + [port] + xucli disconnect disconnect from an xu node xucli executeSwap execute an atomic swap xucli getinfo get general info from the xud node - xucli getorders [pair_id] [max_results] get orders from the order book + xucli getorders [max_results] get orders from the order book xucli getpairs get order book's available pairs - xucli placeorder place an order - [price] + xucli listpeers list connected peers + xucli placeorder place an order, if price is 0 or + [price] unspecified a market order is placed xucli shutdown gracefully shutdown the xud node - xucli subscribepeerorders subscribe to incoming peer orders + xucli subscribepeerorders subscribe to peer order events xucli subscribeswaps subscribe to executed swaps Options: @@ -100,8 +104,6 @@ Options: --version Show version number [boolean] --rpc.port, -p RPC service port [number] [default: 8886] --rpc.host, -h RPC service hostname [string] [default: "localhost"] - - ``` Examples: @@ -120,14 +122,14 @@ Examples: ``` - ## Configuration (optional) -This *optional* configuration file uses [TOML](https://github.com/toml-lang/toml) and by default should be saved at `~/.xud/xud.conf` on Linux or `AppData\Local\Xud\xud.conf` on Windows (run `xud` at least once for this folder to be created). Default settings which can be overridden are shown below. +This *optional* configuration file uses [TOML](https://github.com/toml-lang/toml) and by default should be saved at `~/.xud/xud.conf` on Linux or `AppData\Local\Xud\xud.conf` on Windows (run `xud` at least once for this folder to be created). All options with default values are shown below. ```toml [rpc] port = 8886 +host = "localhost" [webproxy] disable = false @@ -142,12 +144,15 @@ host = "localhost" [p2p] listen = true -port = 8885 -#make sure this port is reachable from the internet +port = 8885 # Make sure this port is reachable from the internet +# A string array of reachable socket addresses for this node, port defaults to 8885 if unspecified +addresses = [ "4.8.15.16:8885" ] [lnd] disable = false host = "localhost" +certpath = "" # The default value is platform-specific +macaroonpath = "" # The default value is platform-specific [raiden] disable = false