This is for setting up a TBW (true block weight) sharing delegate. TBW is an accurate way of calculating rewards and it cannot be fooled with vote jumping like other methods. The TBW script we are using in this guide is written by delegate Goose.
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y
su - qredit
git clone https://github.com/galperins4/core2_tbw
cd ~/core2_tbw/core/config nano config
# atomic ATOMIC = 100000000 # true block weight START_BLOCK = current blockheight NETWORK = "qredit_mainnet" DATABASE_USER = "dbname" DELEGATE = "delegate" PUBLIC_KEY = "delegate publicKey" INTERVAL = 211 VOTER_SHARE = 0.50 PASSPHRASE = "passphrase" SECONDPHRASE = "None" VOTER_MSG = "Delegate X - True Block Weight" BLOCK_CHECK = 30 COVER_TX_FEE = "Y" VOTE_CAP = 0 VOTE_MIN = 0 FIXED = "addr1:0,addr2:0" WHITELIST = "N" WHITELIST_ADDR = "addr1,addr2,addr3" BLACKLIST = "block" BLACKLIST_ADDR = "addr1,addr2,addr3" BLACKLIST_ASSIGN = "addr" MIN_PAYMENT = 0.5 KEEP = "reserve:0.25,second:0.25" PAY_ADDRESSES = "reserve:addr1,second:addr2" # pool POOL_IP = "xx.xx.xx.xx" EXPLORER = "https://explorer.qredit.io/" COIN = "XQR" PROPOSAL = "https://xx.xx.xx/" POOL_PORT = 5000 CUSTOM_PORT = 5004 POOL_VERSION = "original"
Important: VOTER_SHARE and KEEP percentages combined must be 100% (1.00) You can have multiple KEEP addresses. One of them must be called reserve at all times
If you want to setup a pool page (leave it as is if you do not):
Ctrl+O Y to save changes ENTER to confirm file name Cntrl+X
cd ~/core2_tbw bash tbw.sh -Select 1 (Install) -Select 2 (Initialize) -Select 4 (Start TBW only) -Select 5 (Start Pay only) -Select 7 (Start Pool only) (Optional; only if you configured it)
If at any time you wish to change your share rate you must stop TBW, update your config file and run the following command
cd ~/core2_tbw/core python3 tbw.py --shareChange
The script will ask for the prior share percentage, enter it like this "0.75" if you are changing from 75%