16
MemoryCoin / Re: P2Pool Beta for Memorycoin
« on: March 30, 2014, 02:16:16 am »
So far it crashed 3 times. usually after around 24hrs. I put it on a bash loop to auto restart when it crash now
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
rpcuser=memorycoinrpc
rpcpassword=changepassword
rpcallowip=127.0.0.1
rpcallowip=192.168.1.*
rpcport=1925
rpcthreads=50
server=1
daemon=1
listen=1
#!/usr/bin/env bash
set -o errexit
set -o xtrace
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install libtool autotools-dev autoconf pkg-config
sudo apt-get -y install git build-essential libssl-dev libdb4.8-dev libdb4.8++-dev libboost1.48-all-dev
git clone https://github.com/memorycoin/memorycoin
cd memorycoin/src
make -f makefile.unix USE_UPNP=-
cp memorycoind ~
set +o errexit
./memorycoind 2> pass.out
set -o errexit
egrep "^rpcus|^rpcpassword" pass.out > ~/.memorycoin/memorycoin.conf
cat >> ~/.memorycoin/memorycoin.conf << EOF
rpcallowip=127.0.0.1
rpcallowip=192.168.1.*
rpcport=1925
rpcthreads=50
server=1
daemon=1
listen=1
EOF
chmod 400 ~/.memorycoin/memorycoin.conf
rm pass.out
USER=$(egrep "^rpcuser" ~/.memorycoin/memorycoin.conf | cut -d'=' -f2)
PASS=$(egrep "^rpcpassword" ~/.memorycoin/memorycoin.conf | cut -d'=' -f2)
cat > ~/yam-mmc.cfg << EOF
threads = 0
mining-params = mmc:av=0&aesni=on&m=1024&donation-interval=100
mine = getwork://$USER:$PASS@192.168.1.2:1925/mmc
EOF
#! /bin/bash
apt-get update
apt-get -y upgrade
ntpdate 0.pool.ntp.org
apt-get -y install ntp
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
# change 192.168.1.0/24 to your workers network.
cat >> /etc/csf/csf.allow << EOF
tcp|in|d=1925|s=192.168.1.0/24
EOF
cat >> /etc/csf/csf.pignore << EOF
exe:$HOME/memorycoind
exe:/usr/bin/tmux
exe:/usr/bin/whoopsie
exe:/usr/sbin/atd
exe:/bin/bash
exe:/usr/sbin/rsyslogd
EOF
sed -i "s/^TESTING =\ .*$/TESTING = \"0\"/" /etc/csf/csf.conf
sed -i "s/^TCP_IN =\ .*$/TCP_IN = \"22,53,1968\"/" /etc/csf/csf.conf
sed -i "s/^TCP_OUT =\ .*$/TCP_OUT = \"22,53,80,443,1968\"/" /etc/csf/csf.conf
sed -i "s/^UDP_IN =\ .*$/UDP_IN = \"53\"/" /etc/csf/csf.conf
sed -i "s/^UDP_OUT =\ .*$/UDP_OUT = \"53,67,123\"/" /etc/csf/csf.conf
/etc/init.d/csf restart
/etc/init.d/lfd restart
run it likethreads = 0
mining-params = mmc:av=0&aesni=on&m=1024&donation-interval=100
mine = getwork://memorycoinrpc:changepassword@192.168.1.2:1925/mmc
[2014-03-08 12:54:13.661017] MMC Agg. SPM: 22.010, HPM: 22.374; Rnds C/I: 12919/1744, Don. C/I: 158/32; Cfg/Wkr SPM: 22.010/1.3960, Cfg/Wkr HPM: 22.373/1.3983 13077 rnds AV=2, ART=42909
[2014-03-08 12:54:13.661094] 192.168.1.2: On-line, Shares Submitted 0, Accepted 0
[2014-03-08 12:54:14.612521] Found solution - 11687 / 1968 / 1031891111
[2014-03-08 12:54:16.363473] Found solution - 12773 / 1968 / 1956038710
[2014-03-08 12:54:17.168213] Found solution - 12816 / 1968 / 400115672