Repository navigation
EQB Node
Jon B edited this page Apr 11, 2020
·
11 revisions
See Release Notes
- Download and unpack eqb-node-0215.zip to your local drive (or optionally test the mingw binaries generated in an automated build)
- Optionally customize
data\equibit.conf(doc TBD) - Run
start-node.batto launch the equibit testnet node - Run
monitor-log.batto ensure it syncs OK
When running the batch files under Windows 10, Windows Defender will likely popup a warning for an "unrecognized app". Click the "More info" followed by "Run anyway".
To run natively on Ubuntu you will have to build from source. If you're comfortable with git and build tools you should be good to go.
- Acquire read-access to https://github.com/Equibit/equibit-core
- Run
git clone https://github.com/Equibit/equibit-core - cd to
equibit-core - Run
git fetch && git checkout v0.02.15 - Follow Ubuntu build instructions in the README
Most likely you will want to automatically start the node when the machine boots. The Ubuntu systemctl service can be used to easily provide this capability. A sample service file and start script has been created in the repository.
- Copy the
src/equibitdandsrc/equibit-clibinaries from thesrcfolder to a new folder (eg.equibit-node). This step is optional if you used make install. - Copy the
start-node.shscript into this folder. - Edit
start-node.shto point to the data directory created with the Equibit configuration file. See the Configuration section below. - Give
start-node.shexecute permissions:chmod +x ./start-node.sh - Copy the sample service definition file into the service definition directory:
sudo cp ./equibit-node.service /etc/systemd/system - Edit the User, WorkingDirectory and ExecStart settings in the service definition file to point to the node directory.
- Run
sudo systemctl enable equibit-node.serviceto enable the service. - Run
sudo systemctl start equibit-nodeto start the node.
Note. It is not recommended to run the Equibit node as root. Create a new user to run the service or run under an existing user.
- You'll probably want to install Docker
- Create a data folder
- Add a configuration file
equibit.confto the folder (see template below) - Start the node:
docker run --rm --name testnet -p 17331:17331 -p 18331:18331 -v [data folder]:/data -d macterra/eqb-testnet:v02.15- Substitute the path for your own data folders
- Expose the same ports that is specified in the
equibit.conffile - The 17331 port should be exposed if you are running a seed node (specify
listen=1in the config file and add port forwarding if you are behind a firewall) - The 18331 (RPC) port should be exposed for the miner to connect
- Make sure it syncs OK:
docker logs -f testnet - Login to the container to issue commands:
docker exec -it testnet bash- Once logged in you can use the alias
ecinstead ofequibit-client -datadir=/data, e.g.ec uptime
- Once logged in you can use the alias
- When you stop the container
docker stop testnetit will be automatically removed but the blockchain data will persist in your data folder so you can restart any time
- Create a data folder
- Add a configuration file named
equibit.confto the data folder - Run:
equibitd -datadir=[path to data folder]
Template for equibit.conf
rpcuser=equibit
rpcpassword=equibit
rpcallowip=0.0.0.0/0
uacomment=anon-node
testnet=1
server=1
txindex=0
rest=1
listen=1
logtimemicros=1
debug=1
debugexclude=libevent
debugexclude=leveldb
debugexclude=tor
keypool=1
discover=0
mocktime=0
-
equibit-cli -datadir=[path] uptimeto check if the node is running -
equibit-cli -datadir=[path] getwalletinfoto check your balance -
equibit-cli -datadir=[path] getnewaddress main bech32to generate an address in the main account to receive funds -
equibit-cli -datadir=[path] sendtoaddress [address] [amount]to send funds -
equibit-cli -datadir=[path] help [command]to get documentation