A LUX full node for building applications and services with Node.js. A node is extensible and can be configured to run additional services.
-
Install nvm https://github.com/creationix/nvm
nvm i v6 nvm use v6
-
Install mongo https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
-
Install lux-bitcore https://github.com/216k155/lux-bitcore - with ZMQ !
# with ZMQ sudo apt-get install libzmq3-dev
-
Install luxcore-node
npm i https://github.com/216k155/luxcore-node.git#master $(npm bin)/luxcore-node create mynode cd mynode
-
Edit luxcore-node.json
{ "network": "livenet", "port": 3001, "services": [ "luxd", "web" ], "servicesConfig": { "luxd": { "spawn": { "datadir": "/home/user/.lux", "exec": "/home/user/lux-bitcore/src/luxd" } } } }
-
Edit lux.conf
server=1 whitelist=127.0.0.1 txindex=1 addressindex=1 timestampindex=1 spentindex=1 zmqpubrawtx=tcp://127.0.0.1:28332 zmqpubhashblock=tcp://127.0.0.1:28332 rpcallowip=127.0.0.1 rpcuser=user rpcpassword=password rpcport=9888 reindex=1 gen=0 addrindex=1 logevents=1
-
Run Node
$(npm bin)/luxcore-node start
There are several add-on services available to extend the functionality of Luxcore: