2019-03-04 14:10:07 +01:00
|
|
|
# Bisq Seed Node
|
|
|
|
|
2019-12-20 13:07:35 +01:00
|
|
|
## Hardware
|
2019-03-04 14:10:07 +01:00
|
|
|
|
2019-12-20 13:07:35 +01:00
|
|
|
Highly recommended to use SSD! Minimum specs:
|
|
|
|
|
|
|
|
* CPU: 4 cores
|
|
|
|
* RAM: 8 GB
|
|
|
|
* SSD: 512 GB (HDD is too slow)
|
|
|
|
|
|
|
|
## Software
|
|
|
|
|
|
|
|
The following OS are known to work well:
|
|
|
|
|
|
|
|
* Ubuntu 18
|
|
|
|
* FreeBSD 12
|
|
|
|
|
|
|
|
### Installation
|
|
|
|
|
|
|
|
Start with a clean Ubuntu 18.04 LTS server installation, and run the script
|
|
|
|
```bash
|
2019-12-20 13:44:04 +01:00
|
|
|
curl -s https://raw.githubusercontent.com/bisq-network/bisq/master/seednode/install_seednode_debian.sh | sudo bash
|
2019-03-04 14:10:07 +01:00
|
|
|
```
|
2019-12-20 13:07:35 +01:00
|
|
|
|
|
|
|
This will install and configure Tor, Bitcoin, and Bisq-Seednode services to start on boot.
|
|
|
|
|
|
|
|
### Firewall
|
|
|
|
|
|
|
|
Next, configure your OS firewall to only allow SSH and Bitcoin P2P
|
|
|
|
```bash
|
|
|
|
ufw allow 22/tcp
|
|
|
|
ufw allow 8333/tcp
|
|
|
|
ufw enable
|
2019-03-04 14:10:07 +01:00
|
|
|
```
|
2019-12-20 13:07:35 +01:00
|
|
|
|
|
|
|
### Syncing
|
|
|
|
|
|
|
|
After installation, watch the Bitcoin blockchain sync progress
|
|
|
|
```bash
|
|
|
|
sudo tail -f /bitcoin/debug.log
|
2019-03-04 14:10:07 +01:00
|
|
|
```
|
2019-12-20 13:07:35 +01:00
|
|
|
|
2020-02-07 14:41:35 +01:00
|
|
|
After Bitcoin is fully synced, start the bisq service
|
2019-12-20 13:07:35 +01:00
|
|
|
```bash
|
2020-02-07 14:41:35 +01:00
|
|
|
sudo systemctl start bisq
|
|
|
|
sudo journalctl --unit bisq --follow
|
2019-12-20 13:07:35 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
After Bisq is fully synced, check your Bitcoin and Bisq onion hostnames:
|
|
|
|
```bash
|
2019-12-20 19:29:32 +01:00
|
|
|
sudo -H -u bitcoin bitcoin-cli getnetworkinfo|grep address
|
2019-12-20 16:19:28 +01:00
|
|
|
sudo cat /bisq/bisq-seednode/btc_mainnet/tor/hiddenservice/hostname
|
2019-12-20 13:07:35 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
### Testing
|
|
|
|
|
2020-02-07 14:41:35 +01:00
|
|
|
After your Bisq seednode is ready, test it by connecting to your new btcnode and bisq!
|
2019-12-20 13:07:35 +01:00
|
|
|
|
|
|
|
macOS:
|
|
|
|
```bash
|
|
|
|
/Applications/Bisq.app/Contents/MacOS/Bisq --seedNodes=foo.onion:8000 --btcNodes=foo.onion:8333
|
2019-03-04 14:10:07 +01:00
|
|
|
```
|
|
|
|
|
2020-02-20 16:48:56 +01:00
|
|
|
### Monitoring
|
|
|
|
|
|
|
|
If you run a main seednode, you also are obliged to activate the monitoring feed by running
|
|
|
|
|
|
|
|
```bash
|
2020-06-18 07:22:40 +02:00
|
|
|
bash <(curl -s https://raw.githubusercontent.com/bisq-network/bisq/master/monitor/install_collectd_debian.sh)
|
2020-02-20 16:48:56 +01:00
|
|
|
```
|
|
|
|
Follow the instruction given by the script and report your certificate to the seednode group!
|
|
|
|
|
2019-12-20 13:07:35 +01:00
|
|
|
### Upgrading
|
2019-03-04 14:10:07 +01:00
|
|
|
|
2019-12-20 13:07:35 +01:00
|
|
|
To upgrade your seednode to a new tag, for example v1.2.5
|
|
|
|
```bash
|
|
|
|
sudo -u bisq -s
|
|
|
|
cd bisq
|
|
|
|
git fetch origin
|
|
|
|
git checkout v1.2.5 # new tag
|
|
|
|
./gradlew clean
|
|
|
|
./gradlew build -x test
|
|
|
|
exit
|
2020-02-07 14:41:35 +01:00
|
|
|
sudo service bisq restart
|
|
|
|
sudo journalctl --unit bisq --follow
|
2019-03-04 14:10:07 +01:00
|
|
|
```
|
2019-12-20 13:07:35 +01:00
|
|
|
|
|
|
|
### Uninstall
|
|
|
|
|
|
|
|
If you need to start over, you can run the uninstall script in this repo
|
|
|
|
```bash
|
|
|
|
sudo ./delete_seednode_debian.sh
|
2019-03-04 14:10:07 +01:00
|
|
|
```
|
2019-12-20 13:07:35 +01:00
|
|
|
WARNING: this script will delete all data!
|
|
|
|
|