Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Ben Sigman bensig

🚀
View GitHub Profile
@bensig
bensig / haproxy.cfg
Created Nov 15, 2019
haproxy config for P2P proxy using wireguard for EOS seed nodes
View haproxy.cfg
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
@bensig
bensig / nodeos-stop.sh
Created Aug 5, 2019
EOS nodeos stop script
View nodeos-stop.sh
#!/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"
@bensig
bensig / nodeos-start.sh
Created Aug 5, 2019
EOS nodeos start script with variables
View nodeos-start.sh
#!/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
View hapi-config.ini
#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
@bensig
bensig / api.yourdomain.io
Last active Feb 23, 2019
nginx virtualhost config for separating EOS history API - redirect 416 errors to greymass
View api.yourdomain.io
upstream nodeos-full-history {
server eos.greymass.com:80;
}
upstream nodeos-full-history-ssl {
server eos.greymass.com:443;
}
upstream nodeos-limited-history {
server node1.yourdomain.io:port;
View verify.txt
Verifying my Blockstack ID is secured with the address 1Eba4EdgQphQef2PhUd7i3z7sdLKKS29mh https://explorer.blockstack.org/address/1Eba4EdgQphQef2PhUd7i3z7sdLKKS29mh
@bensig
bensig / config.ini
Last active Apr 7, 2020
Example config.ini for EOS Block Producer / Validator
View config.ini
# configuration example by bensig
###### producer plugin options - enable if running producer node
plugin = eosio::producer_plugin
## sig provider keys should match the key on your producer-name
signature-provider = EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV=KEY:5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
producer-name = eosio
## additional producer plugin options can be left default
max-transaction-time = 10000
@bensig
bensig / EOS21 协议
Last active Oct 12, 2018
EOS21协议可以实现ETH和EOS跨链代币转移。
View EOS21 协议
# EOS21 协议
将您的ERC20代币传送到EOS。
## 概述
EOS21协议可以实现ETH和EOS跨链代币转移。
- .ETH (ERC20) –\> EOS21 –\> EOS (代币)
@bensig
bensig / bp_compliance.csv
Last active Aug 28, 2018
EOS BP Compliance as of 8/27/2018
View bp_compliance.csv
Rank Block Producer Public Website and/or bp.json Ownership Statement API OR P2P NODE
1 starteosiobp YES YES YES
2 eos42freedom YES YES YES
3 eosnewyorkio YES YES YES
4 zbeosbp11111 YES YES YES
5 eoshuobipool YES YES YES
6 eosfishrocks YES YES YES
7 eoslaomaocom YES YES YES
8 bitfinexeos1 YES YES YES
9 eosswedenorg YES YES YES
You can’t perform that action at this time.