TIME TO UPDATE ALL P2POOLS!
New Dedicated DigiByte Subsidy Function!
NAME="Ubuntu"
VERSION="12.04.4 LTS, Precise Pangolin"
git clone https://github.com/chaeplin/SUBSIDY_FUNC.git
cd SUBSIDY_FUNC/digibyte-subsidy-python/
python setup.py install
:if get err -> sudo apt-get install libboost1.48-all-dev python-dev
python test.py
:work ? then
edit p2pool/bitcoin/network.py
replace
SUBSIDY_FUNC=~~~
to
SUBSIDY_FUNC=lambda height: __import__('digibyte_subsidy').GetBlockBaseValue(height),
Suse
zypper in gcc-c++ boost-devel python-devel
Dont Forget to follow the steps in the quote above!
Follow Steps below if you did not:
(a) Update to DigiByte 2.0
OR(b) did not update to new conf and download a fressh block chain from block 0!
Just for kicks:
cd ~
sudo apt-get update
sudo apt-get upgrade
sudo add-apt-repository ppa:bitcoin/bitcoin
Lets Update Digibyted:
ON THE FLY! (dont have to stop your p2pool yet)
Note: dont forget the "." in .digibyte here... otherwise youll delete the wrong thing
rm -f -r .digibyte
cd ~/digibyte #OR cd ~/DigiByteProject if you ahven't renamed
git pull origin master #just incase you havvent downloaded digibyte v2.0
cd src #edited: "/src" fixed! :)
rm -f -r obj
mkdir obj
make -f makefile.unix USE_UPNP=-
sudo cp digibyted /usr/bin
cd ~
DigiByted Time!
cd ~
./digibyte/src/digibyted #or ./DigiByteProject/src/digibyted if you did not rename! Running digibyted should give you an error, good!
cd .digibyte
nano digibyte.conf #copy this into the file, dont forget to change user and pass:
rpcuser=youruserCHANGE
rpcpassword=yourpassCHANGE
server=1
daemon=1
rpcport=14022
port=12024
gen=1
rpcallowip=127.0.0.1
addnode=74.208.230.160
addnode=31.220.25.91
addnode=184.155.218.183
addnode=24.119.23.61
addnode=70.196.193.231
addnode=198.98.118.241
addnode=142.4.204.115
addnode=23.90.191.58
addnode=216.250.125.121
addnode=115.28.31.25
addnode=83.172.105.46
Press Ctrl + X and then Y to save conf
./digibyte/src/digibyted #or ./DigiByteProject/src/digibyted if you did not rename!
wait for 15 20 seconds for digibyted to start up! and then "getinfo"
./digibyte/src/digibyted getinfo #make sure the blocks are syncing from the 0'th block
After the blocks have synced.. this is gonna take A LONG Time, Lets restart the p2pool after that.
screen -x myp2pool
#Press CTRL + C to kill the p2pool and then restart using your string! after the blocks have synced
screen -d -m -S myp2pool ~/p2pool/run_p2pool.py --give-author 0 --net digibyte NEWUSER NEWPASS --outgoing-conns 4 --fee 1.0 --address NEWADDRESS
PRESS CTRL + A + D to Detach from screen
Total DownTime: 1 Minute.
Let me know immediately if you have trouble.
Edit: How to make sure your on the RIGHT fork:
Make sure the "./digibyte/src/digibyted getinfo" difficulty matches the difficulty of your main MAIN personal wallet (mouseover the checkmark on your wallet to see difficulty and block!