Skip to content

EQB Node

Jon B edited this page Apr 11, 2020 · 11 revisions

See Release Notes

Installation

Windows binaries

  • 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.bat to launch the equibit testnet node
  • Run monitor-log.bat to 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".

Ubuntu

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.

Ubuntu Service

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/equibitd and src/equibit-cli binaries from the src folder to a new folder (eg. equibit-node). This step is optional if you used make install.
  • Copy the start-node.sh script into this folder.
  • Edit start-node.sh to point to the data directory created with the Equibit configuration file. See the Configuration section below.
  • Give start-node.sh execute 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.service to enable the service.
  • Run sudo systemctl start equibit-node to 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.

Docker

  • You'll probably want to install Docker
  • Create a data folder
  • Add a configuration file equibit.conf to 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.conf file
    • The 17331 port should be exposed if you are running a seed node (specify listen=1 in 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 ec instead of equibit-client -datadir=/data, e.g. ec uptime
  • When you stop the container docker stop testnet it will be automatically removed but the blockchain data will persist in your data folder so you can restart any time

Configuration

  • Create a data folder
  • Add a configuration file named equibit.conf to 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

CLI Commands

  • equibit-cli -datadir=[path] uptime to check if the node is running
  • equibit-cli -datadir=[path] getwalletinfo to check your balance
  • equibit-cli -datadir=[path] getnewaddress main bech32 to 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

Clone this wiki locally