Show Posts

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.


Topics - toonces

Pages: [1]
1
MemoryCoin / How to vote
« on: March 24, 2014, 04:58:18 am »
When you vote do you need to vote from the address with the biggest balance ?
So everytime before you vote do you need to combine all the balance to one address and vote ? or keep using the new change address to vote ?

Thanks

2
MemoryCoin / Solo mining MMC using multiple yam workers
« on: March 08, 2014, 02:05:27 pm »
Here is a guide that I use to create solo mining MMC using multiple yam workers

I. Create Wallet Server

1. Install Ubuntu Server 12.04 LTS 64 bit from
http://www.ubuntu.com/download/server

2. Install/compile memorycoind
https://github.com/memorycoin/memorycoin

3. Use this configuration file under .memorycoin
Change 192.168.1.* for your worker ip where you run yam
Change setting rpcthreads >= 2*number of workers ( recommended by  yvg1900)
memorycoin.conf
Code: [Select]
rpcuser=memorycoinrpc
rpcpassword=changepassword
rpcallowip=127.0.0.1
rpcallowip=192.168.1.*
rpcport=1925
rpcthreads=50
server=1
daemon=1
listen=1

4. Run
./memorycoind

5. Check
./memorycoind getinfo

And wait until blocks is equal to the current mmc block which you can find at
http://mmcexplorer.info/ current block
or
http://agran.net/memorycoin2_calc.html current block number


Or run this bash script to automatically download/compile memorycoind and create the yam-mmc.cfg file
Code: [Select]
#!/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:[email protected]:1925/mmc
EOF

Optional: Installing firewall if you have your wallet outside a firewall.
Please read through the script and modified the appropriate line.
You can accidentally lock yourself out if there is a mistake.

firewall.sh
Code: [Select]
#! /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 like
sudo bash ./firewall.sh


II. Create 1 or more workers

1. Install Ubuntu Server 12.04 LTS 64 bit

2. Download the appropriate yam for your CPU from:
 
https://bitsharestalk.org/index.php?topic=2609.0

I use yam-yvg1900-M7n-linux64-sandy-bridge
Next, change 192.168.1.2 to your wallet IP Address

yam-mmc.cfg
Code: [Select]
threads = 0
mining-params = mmc:av=0&aesni=on&m=1024&donation-interval=100
mine = getwork://memorycoinrpc:[email protected]:1925/mmc

3. Run the command below

tmux new-session -d './yam -c yam-mmc.cfg >> yam.out' \; detach

If everything works the way it should, yam.out should look like this

Code: [Select]
[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

Depending on your total HPM when it finds a block the Shares Submitted 0, Accepted 0 will change to
Shares Submitted 1, Accepted 1

For example, I have an approximate total 470 HPM across 21 servers (dual 8 core) with this setup I managed to find 6 blocks in 3 days. It appears conclusive according to the mining calculator http://agran.net/memorycoin2_calc.html


Happy Mining


Pages: [1]