This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple script to check the bitcoin sync level of your bitcoind node | |
echo `bitcoin-cli getblockcount 2>&1`/`curl -s https://blockchain.info/q/getblockcount 2>/dev/null`*100|bc -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clone neutrino | |
mkdir -d ~/go/pkg/neutrino | |
git clone https://github.com/lightninglabs/neutrino.git ~/neutrino | |
make all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install go | |
sudo snap install --classic go | |
# Create a 'go' directory in your home directory: | |
mkdir ~/go | |
# set GO PATH and PATH | |
echo "export GOPATH=$HOME/go" >> .bashrc | |
echo "export PATH=$PATH:$GOROOT/bin:$GOPATH/bin" >> .bashrc | |
source .bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# installing bitcoind like a boss on Ubuntu 20.04.2 LTS \n \l | |
# Update & Upgrade the System | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install dependencies there might be more based on your system | |
# However below instructions are for the fresh Ubuntu install/server | |
# Please carefully watch the logs because if something could not be install | |
# You have to make sure it is installed properly by trying the command or that particular |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are a few roles for servers - API, P2P, HYPERION, and PRODUCER | |
# Producer Role | |
EOSIO block producers are mostly single threaded for processing transactions. | |
...so normally I would never recommend using desktop hardware in place of server hardware, but in the case of producer nodes where clockspeed is king and you can mitigate risk by running a failover node - it's not THAT bad. | |
You might use a Z490 PRIME mobo with a i9-10900k, water cooling, and 32GB RAM (can't use ECC ram. another drawback to using desktop hardware.) | |
I'd recommend a enterprise SSD | |
1 out of 6 EVO SSDs have failed completely |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGNAME=${0##*/} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon | |
maxconn 4096 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NODEOS=/home/ubuntu/src/wax-blockchain/build/programs/nodeos/nodeos | |
DATADIR=/home/ubuntu/eos/wax/node | |
GENESIS=/home/ubuntu/eos/wax/genesis.json | |
if [ -f $DATADIR"/nodeos.pid" ]; then | |
pid=$(cat $DATADIR"/nodeos.pid") | |
echo $pid | |
kill $pid | |
rm -r $DATADIR"/nodeos.pid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NODEOS=~/src/eos/build/programs/nodeos/nodeos | |
DATADIR=~/node | |
GENESIS=~/src/eos/genesis.json | |
CONFIG="config.ini" | |
$DATADIR/stop.sh || true | |
TIMESTAMP=$(/bin/date +%s) | |
$NODEOS --data-dir $DATADIR --config-dir $DATADIR -c $CONFIG "$@" >> $DATADIR/stdout.txt 2>> $DATADIR/eos-$TIMESTAMP.log & echo $! > $DATADIR/nodeos.pid | |
/usr/bin/unlink $DATADIR/eos.log | |
/bin/ln -s $DATADIR/eos-$TIMESTAMP.log $DATADIR/eos.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#hapi | |
plugin = eosio::http_plugin | |
filter-on=* | |
filter-out=eosio:onblock: | |
history-index-state-db-size-mb = 32768 | |
history-state-db-size-mb = 32768 | |
history-per-account = 100 | |
history-dir = history | |
history-index-dir = index |