Crypto mining pool
C PHP JavaScript C++ HTML CSS Other
Switch branches/tags
Nothing to show
Clone or download
globalzon Merge pull request #1 from blood2/master
added masternodes payment to BOD
Latest commit 04fe319 Jul 12, 2015
Permalink
Failed to load latest commit information.
blocknotify init Jun 25, 2015
config init Jun 25, 2015
stratum added masternodes payment to BOD Jul 12, 2015
web init Jun 27, 2015
README.md init Jun 28, 2015
rc.local init Jun 27, 2015
yaamp.sql first commit Jun 24, 2015

README.md

#yaamp

Required:

linux, mysql, php, web engine, memcached

Config for nginx:

location / {
	try_files $uri @rewrite;
}

location @rewrite {
	rewrite ^/(.*)$ /index.php?r=$1;
}

location ~ \.php$ {
	fastcgi_pass unix:/var/run/php5-fpm.sock;
	fastcgi_index index.php;
	include fastcgi_params;
}

If you use apache, it should be something like:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php?r=$1 [QSA]

The recommended install folder for the stratum engine is /var/stratum. Copy all the .conf files, run.sh, the stratum binary and the blocknotify binary to this folder.

Some scripts are expecting the web folder to be /var/web.

Add your exchange API keys in:

web/yaamp/core/exchange/*

Look at web/yaamp/core/trading/ there are a few place where there're hardcoded withdraw BTC address (cryptsy, bittrex and bleutrade).

Edit web/serverconfig.php

You need three backend shells (in screen) running these scripts:

web/main.sh
web/loop2.sh
web/block.sh

Start one stratum per algo using the run.sh script with the algo as parameter. For example, for x11:

run.sh x11

Edit each .conf file with proper values.

Look at rc.local, it starts all three backend shells and all stratum processes. Copy it to the /etc folder so that all screen shells are started at boot up.

All your coin's config files need to blocknotify their corresponding stratum using something like:

blocknotify=/var/stratum/blocknotify yaamp.com:port coinid %s

On the website, go to http://server.com/site/frottedessus to login as admin. You have to change it to something different in the code (web/yaamp/modules/site/SiteController.php).

There are logs generated in the /var/stratum folder and /var/log/stratum/debug.log for the php log.

More instructions coming as needed.

There a lot of unused code in the php branch. Lot come from other projects I worked on and I've been lazy to clean it up before to integrate it to yaamp. It's mostly based on the Yii framework which implements a lightweight MVC.

http://www.yiiframework.com/