Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ethash #363

Open
wants to merge 613 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
613 commits
Select commit Hold shift + click to select a range
15ab435
Create stribog.c
cryptopool-builders Feb 20, 2019
7cac19a
Create stribog_data.h
cryptopool-builders Feb 20, 2019
50d48a0
Create test_data.h
cryptopool-builders Feb 20, 2019
1882fb4
Create setup.c
cryptopool-builders Feb 20, 2019
b225701
Create swifft.c
cryptopool-builders Feb 20, 2019
6ec5e91
Create swifft.h
cryptopool-builders Feb 20, 2019
1740dc2
Create byte_order.c
cryptopool-builders Feb 20, 2019
d298021
Create byte_order.h
cryptopool-builders Feb 20, 2019
9cb8754
Create ustd.h
cryptopool-builders Feb 20, 2019
c97ee4d
Create whirlpool.c
cryptopool-builders Feb 20, 2019
a3df0a4
Create whirlpool.h
cryptopool-builders Feb 20, 2019
29c5d2b
Create whirlpool_sbox.c
cryptopool-builders Feb 20, 2019
f4f8d68
Create cmll-x86.pl
cryptopool-builders Feb 20, 2019
49f48fa
Create cmll-x86_64.pl
cryptopool-builders Feb 20, 2019
cc3fb17
Create cmllt4-sparcv9.pl
cryptopool-builders Feb 20, 2019
78dd965
Create camellia.c
cryptopool-builders Feb 20, 2019
25424ad
Create camellia.h
cryptopool-builders Feb 20, 2019
3418d49
Create cmll_cbc.c
cryptopool-builders Feb 20, 2019
e599429
Create cmll_cfb.c
cryptopool-builders Feb 20, 2019
d4a9d48
Create cmll_ctr.c
cryptopool-builders Feb 20, 2019
77ac83a
Create cmll_ecb.c
cryptopool-builders Feb 20, 2019
f7dc30f
Create cmll_locl.h
cryptopool-builders Feb 20, 2019
3457dee
Create cmll_misc.c
cryptopool-builders Feb 20, 2019
82bdcd5
Create cmll_ofb.c
cryptopool-builders Feb 20, 2019
ce0e438
Create cmll_utl.c
cryptopool-builders Feb 20, 2019
c4fd247
Update makefile
cryptopool-builders Feb 20, 2019
bba5820
Create binarium-v1.conf
cryptopool-builders Feb 20, 2019
4953f0d
Update stratum.cpp
cryptopool-builders Feb 20, 2019
3008854
Update stratum.h
cryptopool-builders Feb 20, 2019
ed93087
Update yaamp.php
cryptopool-builders Feb 20, 2019
3dfbdd7
Update makefile
cryptopool-builders Feb 20, 2019
b59d3fc
Update makefile
cryptopool-builders Feb 20, 2019
02126a4
Update makefile
cryptopool-builders Feb 20, 2019
ec90471
Delete ecrypt-config.h
cryptopool-builders Feb 20, 2019
8a23743
Create ecrypt-config.h
cryptopool-builders Feb 20, 2019
f8285d2
new stratums
cryptopool-builders Feb 20, 2019
623abcc
Update makefile
cryptopool-builders Feb 20, 2019
1d3546f
Update bcd.conf
cryptopool-builders Feb 21, 2019
b287f47
Update bcd.conf
cryptopool-builders Feb 21, 2019
ba871df
Delete bcd.conf
cryptopool-builders Feb 21, 2019
e4013c5
Create bcd.conf
cryptopool-builders Feb 21, 2019
2c0b398
Update payment.php
cryptopool-builders Feb 21, 2019
f434039
Update payment.php
cryptopool-builders Feb 21, 2019
467507c
small updates
cryptopool-builders Feb 22, 2019
d7b7e74
updates
cryptopool-builders Feb 22, 2019
0906b28
Update makefile
cryptopool-builders Feb 22, 2019
3cfa6f6
Update stratum.cpp
cryptopool-builders Feb 22, 2019
7db0b55
Update stratum.h
cryptopool-builders Feb 22, 2019
7defa80
Update yaamp.php
cryptopool-builders Feb 22, 2019
b32bc7f
Update client_difficulty.cpp
cryptopool-builders Feb 22, 2019
5c7b0f0
Update client_submit.cpp
cryptopool-builders Feb 22, 2019
dbbe833
Update stratum.cpp
cryptopool-builders Feb 22, 2019
2b2d533
Update stratum.h
cryptopool-builders Feb 22, 2019
43c1cac
Update yaamp.php
cryptopool-builders Feb 22, 2019
7de8fc8
Update client_submit.cpp
cryptopool-builders Feb 22, 2019
4af66be
Update yaamp.php
cryptopool-builders Feb 22, 2019
56e13e1
Update labels.json
cryptopool-builders Feb 22, 2019
5da23dc
Create lyra2re3.c
cryptopool-builders Feb 22, 2019
62195be
Create lyra2re3.h
cryptopool-builders Feb 22, 2019
2b3ce13
Update makefile
cryptopool-builders Feb 22, 2019
b3989a1
Update stratum.cpp
cryptopool-builders Feb 22, 2019
df1b16d
Update stratum.h
cryptopool-builders Feb 22, 2019
a8bec3b
Update services.php
cryptopool-builders Feb 22, 2019
89a2841
Update user.cpp
cryptopool-builders Feb 22, 2019
a94e74c
Update makefile
cryptopool-builders Feb 22, 2019
d43dff6
Update makefile
cryptopool-builders Feb 22, 2019
f354ed4
Update user.cpp
cryptopool-builders Feb 22, 2019
00e898c
Update stratum.h
cryptopool-builders Feb 25, 2019
190f1ed
Update makefile
cryptopool-builders Feb 25, 2019
14cf9c0
Update stratum.cpp
cryptopool-builders Feb 25, 2019
2bccd58
Update makefile
cryptopool-builders Feb 25, 2019
e90a17a
Delete coinbase.cpp.bak
cryptopool-builders Feb 25, 2019
ad9d404
Delete Makefile.bak
cryptopool-builders Feb 25, 2019
753a5e1
Delete stratum.cpp.bak
cryptopool-builders Feb 25, 2019
1e80504
Delete stratum.h.bak
cryptopool-builders Feb 25, 2019
651dc61
Delete util.cpp.bak
cryptopool-builders Feb 25, 2019
dae51b5
Delete util.h.bak
cryptopool-builders Feb 25, 2019
1a7cc70
Update coind_submit.cpp
cryptopool-builders Feb 25, 2019
7c403e3
Update rawcoins.php
cryptopool-builders Feb 25, 2019
87d1f17
Update coinbase.cpp
cryptopool-builders Feb 26, 2019
34df863
Update yaamp.php
cryptopool-builders Feb 27, 2019
f6c0ca6
Update coinbase.cpp
cryptopool-builders Feb 28, 2019
bae665f
Update coinbase.cpp
cryptopool-builders Feb 28, 2019
78e9cb7
Update coinbase.cpp
cryptopool-builders Feb 28, 2019
50cd56f
Create _config.yml
cryptopool-builders Mar 1, 2019
0f6045f
Update client_submit.cpp
cryptopool-builders Mar 3, 2019
3363218
Update coinbase.cpp
cryptopool-builders Mar 4, 2019
f102f04
Update coinbase.cpp
cryptopool-builders Mar 4, 2019
b2c2dab
Update coinbase.cpp
cryptopool-builders Mar 4, 2019
aaaa7f8
Update coinbase.cpp
cryptopool-builders Mar 4, 2019
11f4382
Update coinbase.cpp
cryptopool-builders Mar 4, 2019
024ec8c
Update coinbase.cpp
cryptopool-builders Mar 4, 2019
318cce4
Update coinbase.cpp
cryptopool-builders Mar 5, 2019
7a22ee3
Update coinbase.cpp
cryptopool-builders Mar 5, 2019
4aa4259
Update coinbase.cpp
cryptopool-builders Mar 5, 2019
ff79cdd
Update coinbase.cpp
cryptopool-builders Mar 5, 2019
8fcdc00
Update coinbase.cpp
cryptopool-builders Mar 5, 2019
c337856
Update client_submit.cpp
cryptopool-builders Mar 5, 2019
15428d3
Merge pull request #40 from UdjinM6/dash13
cryptopool-builders Mar 8, 2019
2346b09
additions
cryptopool-builders Mar 9, 2019
cbcbadd
Update stratum.cpp
cryptopool-builders Mar 9, 2019
6e9cbc5
Update stratum.cpp
cryptopool-builders Mar 9, 2019
ac603cb
Update stratum.cpp
cryptopool-builders Mar 10, 2019
198e819
Update payment.php
cryptopool-builders Mar 10, 2019
6527de0
Update rawcoins.php
cryptopool-builders Mar 14, 2019
6dfb579
Delete zebitex.php
cryptopool-builders Mar 14, 2019
f7898d1
API difficulty fix to remove Itoa2 for cross compatibility
karl-kauffmann Mar 18, 2019
8255106
Merge pull request #41 from karl-kauffmann/patch-1
cryptopool-builders Mar 18, 2019
4a00f6c
Update client_submit.cpp
cryptopool-builders Mar 19, 2019
28ef3e4
Update client_submit.cpp
cryptopool-builders Mar 19, 2019
61658be
Update exchange.php
cryptopool-builders Mar 21, 2019
55752a8
removed zebitex
cryptopool-builders Mar 21, 2019
c28b86c
Update yespower.c
cryptopool-builders Apr 1, 2019
1140966
Update yespower.h
cryptopool-builders Apr 1, 2019
0540753
Update stratum.cpp
cryptopool-builders Apr 1, 2019
ba6748a
Update yespower.c
cryptopool-builders Apr 1, 2019
411663f
Update yespower.h
cryptopool-builders Apr 1, 2019
b21625e
Update yespower.c
cryptopool-builders Apr 2, 2019
36e1d4a
Update yespower.c
cryptopool-builders Apr 2, 2019
e5e5853
updates
cryptopool-builders Apr 2, 2019
c0f6db6
Update stratum.cpp
cryptopool-builders Apr 2, 2019
e345e01
Update stratum.h
cryptopool-builders Apr 2, 2019
5c28e2a
Update stratum.h
cryptopool-builders Apr 2, 2019
3f3cbd7
Update stratum.cpp
cryptopool-builders Apr 2, 2019
25672e7
Update stratum.h
cryptopool-builders Apr 2, 2019
7460cb2
Update makefile
cryptopool-builders Apr 2, 2019
e6adb72
Update coinbase.cpp
cryptopool-builders Apr 2, 2019
8f2be35
Update coinbase.cpp
cryptopool-builders Apr 19, 2019
f5b885f
Update db.cpp
cryptopool-builders Apr 19, 2019
28c2a62
Update coinbase.cpp
cryptopool-builders Apr 19, 2019
36728c9
Update db.cpp
cryptopool-builders Apr 19, 2019
f453b94
Update coinbase.cpp
cryptopool-builders Apr 20, 2019
5089719
Update coinbase.cpp
cryptopool-builders Apr 20, 2019
2501b32
updates rfv2
cryptopool-builders Apr 22, 2019
0b0ee6d
Merge branch 'next' of https://github.com/cryptopool-builders/yiimp i…
cryptopool-builders Apr 22, 2019
bdcd175
Update yaamp.php
cryptopool-builders Apr 27, 2019
be185d9
Update coinbase.cpp
cryptopool-builders Apr 29, 2019
1d1a092
Update coinbase.cpp
cryptopool-builders Apr 29, 2019
44b6012
rfv2 update
cryptopool-builders May 7, 2019
332084f
diff update
cryptopool-builders May 8, 2019
0f3396b
Update coinbase.cpp
cryptopool-builders May 23, 2019
1028fed
x25x
cryptopool-builders May 27, 2019
6e6abbd
Update coinbase.cpp
cryptopool-builders May 30, 2019
d416063
Update coinbase.cpp
cryptopool-builders May 31, 2019
dca860e
Update coinbase.cpp
cryptopool-builders May 31, 2019
c7f8e15
x25x update
cryptopool-builders Jun 1, 2019
be9eacc
Update coinbase.cpp
cryptopool-builders Jun 9, 2019
8d6d0ef
Update coinbase.cpp
cryptopool-builders Jun 9, 2019
dc1d764
stratum updates
cryptopool-builders Jun 10, 2019
1d27ff7
Merge branch 'next' of https://github.com/cryptopool-builders/yiimp i…
cryptopool-builders Jun 10, 2019
98b37ad
more stratum stuff
cryptopool-builders Jun 10, 2019
7f5989d
fix error
cryptopool-builders Jun 10, 2019
291c003
maybe pretty please stratum fix
cryptopool-builders Jun 10, 2019
eb5614d
for the love of everything holy stratum fix
cryptopool-builders Jun 10, 2019
3fb90be
missing frontend files
cryptopool-builders Jun 11, 2019
a5b3792
some required frontend files changed
cryptopool-builders Jun 11, 2019
479ba00
Update ApiController.php
cryptopool-builders Jun 12, 2019
75154b1
lux fix?
cryptopool-builders Jun 16, 2019
8bffec4
lux fix 2
cryptopool-builders Jun 16, 2019
9277ae4
Update coin_form.php
cryptopool-builders Jun 19, 2019
c4c405d
Update coin_form.php
cryptopool-builders Jun 19, 2019
caac5f1
Update coin_form.php
cryptopool-builders Jun 19, 2019
0833374
Update coin_form.php
cryptopool-builders Jun 19, 2019
bdb009b
Update coin_form.php
cryptopool-builders Jun 19, 2019
0b014e9
Update coin_form.php
cryptopool-builders Jun 19, 2019
caf0022
stratum: x16rv2 algo
cryptopool-builders Oct 14, 2019
688c633
odo v1 may fail build
cryptopool-builders Nov 6, 2019
a3c1b04
Update odo.c
cryptopool-builders Nov 6, 2019
22ba326
Update odo.c
cryptopool-builders Nov 6, 2019
e76b6dc
Update odo.c
cryptopool-builders Nov 6, 2019
6c5f89f
revert odo
cryptopool-builders Nov 6, 2019
e8eea81
Merge branch 'next' of https://github.com/cryptopool-builders/yiimp i…
cryptopool-builders Nov 6, 2019
a4771e7
revert odo
cryptopool-builders Nov 6, 2019
bc07909
Update defaultconfig.php
cryptopool-builders Nov 9, 2019
cdde2fb
Add files via upload
cryptopool-builders Nov 10, 2019
3fe0edf
Update coinbase.cpp
cryptopool-builders Nov 11, 2019
f819443
Update defaultconfig.php
cryptopool-builders Nov 11, 2019
c7df3c7
Update defaultconfig.php
cryptopool-builders Nov 11, 2019
bf12a09
BitCash Test may Fail
cryptopool-builders Nov 12, 2019
be8de66
Update coinbase.cpp
cryptopool-builders Nov 12, 2019
4a5481f
Update coinbase.cpp
cryptopool-builders Nov 14, 2019
2cae920
Update coinbase.cpp
cryptopool-builders Nov 15, 2019
3291f4d
Update coin_form.php
cryptopool-builders Nov 19, 2019
82a0c0e
Update coin_form.php
cryptopool-builders Nov 19, 2019
e9da7a0
Update coinbase.cpp
cryptopool-builders Nov 20, 2019
761fdeb
x25x sin fix?
cryptopool-builders Nov 20, 2019
bcb63fb
x25x sin fix 2
cryptopool-builders Nov 20, 2019
a12c16e
some updates
cryptopool-builders Nov 22, 2019
8d72fc2
additions
cryptopool-builders Nov 23, 2019
5551120
Update coinbase.cpp
cryptopool-builders Nov 23, 2019
6aaba7a
Removed .bak files
cryptopool-builders Nov 24, 2019
bffff5c
Update lyra2v3.c
phm87 Dec 14, 2019
19fba31
Merge pull request #44 from phm87/patch-22
cryptopool-builders Dec 14, 2019
d3dc17d
segwit change
cryptopool-builders Jan 2, 2020
c173806
Update coinbase.cpp
cryptopool-builders Jan 18, 2020
5c03fe1
Update coinbase.cpp
cryptopool-builders Jan 18, 2020
b0e0965
Update coinbase.cpp
cryptopool-builders Jan 18, 2020
24ffc33
Update coinbase.cpp
cryptopool-builders Jan 18, 2020
08f52aa
Update coinbase.cpp
cryptopool-builders Jan 18, 2020
0934b77
Update coinbase.cpp
cryptopool-builders Jan 18, 2020
7d0a246
Update client_submit.cpp
cryptopool-builders Jan 18, 2020
b14249e
Update client_submit.cpp
cryptopool-builders Jan 18, 2020
4652a1f
Update client_submit.cpp
cryptopool-builders Jan 18, 2020
10e06ff
Update coin_results.php
cryptopool-builders Jan 24, 2020
12f1119
Update coin_results.php
cryptopool-builders Jan 24, 2020
e00f4c0
Update coin_results.php
cryptopool-builders Jan 24, 2020
1af0368
Update coin_results.php
cryptopool-builders Jan 24, 2020
0433667
Update remote.cpp
cryptopool-builders Jan 26, 2020
550eca0
Update remote.cpp
cryptopool-builders Jan 26, 2020
8466fb8
Update remote.cpp
cryptopool-builders Jan 27, 2020
853a1fb
Update remote.cpp
cryptopool-builders Jan 27, 2020
f028ce0
Update remote.cpp
cryptopool-builders Jan 27, 2020
6e3bca7
Update Makefile
cryptopool-builders Jan 27, 2020
6920990
Update Makefile
cryptopool-builders Jan 27, 2020
ef487ca
Update stratum.h
cryptopool-builders Jan 27, 2020
05f10a5
Update stratum.h
cryptopool-builders Jan 27, 2020
eb30402
Update coinbase.cpp
cryptopool-builders Feb 3, 2020
c470f55
Update remote.cpp
cryptopool-builders Feb 3, 2020
c121ae1
Update remote.cpp
cryptopool-builders Feb 3, 2020
d862445
Update remote_template.cpp
cryptopool-builders Feb 3, 2020
88edbed
Update yaamp.php
cryptopool-builders Feb 7, 2020
695d52e
Update coinbase.cpp
cryptopool-builders Feb 8, 2020
97dab54
Update coinbase.cpp
cryptopool-builders Feb 8, 2020
283ef33
Update coinbase.cpp
cryptopool-builders Feb 18, 2020
d948c4e
Update coinbase.cpp
cryptopool-builders Feb 18, 2020
9c744e1
Update coinbase.cpp
cryptopool-builders Feb 18, 2020
a4680b0
Update coinbase.cpp
cryptopool-builders Feb 20, 2020
fb1088b
Update coinbase.cpp
cryptopool-builders Feb 20, 2020
1acd971
Update coinbase.cpp
cryptopool-builders Mar 9, 2020
8c0334c
Update stratum.cpp
cryptopool-builders Mar 10, 2020
2e90eb3
Update yaamp.php
cryptopool-builders Mar 10, 2020
43547cc
Update mining.php
cryptopool-builders Mar 17, 2020
fe237eb
Update yaamp.php
cryptopool-builders Mar 18, 2020
3c91df9
code cleanup
cryptopool-builders Mar 20, 2020
288e985
Update coin_form.php
cryptopool-builders Mar 20, 2020
13e3691
TTF Update
cryptopool-builders Mar 21, 2020
de7a0fb
Update common.php
cryptopool-builders Mar 21, 2020
a015fa9
Update index.php
cryptopool-builders Mar 21, 2020
0b315fb
Update mining.php
cryptopool-builders Mar 26, 2020
5df31f9
fixed broken variables
cryptopool-builders Mar 26, 2020
5defc79
Update coinbase.cpp
cryptopool-builders Mar 27, 2020
d04914f
stratum update
cryptopool-builders Mar 31, 2020
d8c634d
dif fix
cryptopool-builders Apr 6, 2020
22271cc
diff
cryptopool-builders Apr 9, 2020
b080f79
dif is gonna be the death of me
cryptopool-builders Apr 9, 2020
d7ee72a
dif is gonna be the death of me
cryptopool-builders Apr 9, 2020
f67c6ed
idx fix
cryptopool-builders Apr 12, 2020
b90ef86
gxx
cryptopool-builders Apr 12, 2020
78b715d
this commit was only meant for sugarchain;
Jun 16, 2020
c938b1b
Merge pull request #51 from barrystyle/next
cryptopool-builders Aug 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ web/assets/
.idea/*
web/yaamp/.idea/
*.0
web/keys.sample.php
web/yaamp/modules/site/coin_form.php
web/yaamp/modules/site/index.php
web/yaamp/modules/site/results/current_results.php
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

153 changes: 24 additions & 129 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,137 +1,32 @@
[![Build Status](https://travis-ci.org/tpruvot/yiimp.svg?branch=next)](https://travis-ci.org/tpruvot/yiimp)
### Welcome to the cryptopool.builders github!
### This fork of YiiMP is designed to work with our Ultimate Crypto-Server Installer program.
Trying to install this on a server not built by our installer will cause headaches, frustrations, and screaming loudly at your monitor.

#yiimp - yaamp fork
#### Please go to https://github.com/cryptopool-builders/Multi-Pool-Installer for our installer.

WARNINGS
- Use at your own risks.
- Usage of this software requires abilities with sysadmin, database admin, coin daemons, and sometimes a bit of programming. Running a production pool can literally be more work than a full-time job.
## Changes to this fork include but not limited to:

Required:
```
- File structure -
$STORAGE_ROOT/yiimp/site/web
$STORAGE_ROOT/yiimp/site/stratum (Only on single server installs)
$STORAGE_ROOT/yiimp/site/configuration
$STORAGE_ROOT/yiimp/site/crons
$STORAGE_ROOT/yiimp/site/log
$STORAGE_ROOT/yiimp/starts

linux, mysql, php, memcached, a webserver (lighttpd or nginx recommended)
- Site Files-
Updated various files to work with new file structure
```


Config for nginx:
## Donations for continued support of this script are welcomed at:
* BTC 3DvcaPT3Kio8Hgyw4ZA9y1feNnKZjH7Y21
* BCH qrf2fhk2pfka5k649826z4683tuqehaq2sc65nfz3e
* ETH 0x6A047e5410f433FDBF32D7fb118B6246E3b7C136
* LTC MLS5pfgb7QMqBm3pmBvuJ7eRCRgwLV25Nz

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 that (already set in web/.htaccess):

RewriteEngine on

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


If you use lighttpd, use the following config:

$HTTP["host"] =~ "yiimp.ccminer.org" {
server.document-root = "/var/yaamp/web"
url.rewrite-if-not-file = (
"^(.*)/([0-9]+)$" => "index.php?r=$1&id=$2",
"^(.*)\?(.*)" => "index.php?r=$1&$2",
"^(.*)" => "index.php?r=$1",
"." => "index.php"
)

url.access-deny = ( "~", ".dat", ".log" )
}


For the database, import the initial dump present in the sql/ folder

Then, apply the migration scripts to be in sync with the current git, they are sorted by date of change.

Your database need at least 2 users, one for the web site (php) and one for the stratum connections (password set in config/algo.conf).



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. You can use directory symlinks...


Add your exchange API public and secret keys in these two separated files:

/etc/yiimp/keys.php - fixed path in code
web/serverconfig.php - use sample as base...

You can find sample config files in web/serverconfig.sample.php and web/keys.sample.php

This web application includes some command line tools, add bin/ folder to your path and type "yiimp" to list them, "yiimp checkup" can help to test your initial setup.
Future scripts and maybe the "cron" jobs will then use this yiic console interface.

You need at least 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=blocknotify yaamp.com:port coinid %s

On the website, go to http://server.com/site/adminRights to login as admin. You have to change it to something different in the code (web/yaamp/modules/site/SiteController.php). A real admin login may be added later, but you can setup a password authentification with your web server, sample for lighttpd:

htpasswd -c /etc/yiimp/admin.htpasswd <adminuser>

and in the lighttpd config file:

# Admin access
$HTTP["url"] =~ "^/site/adminRights" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/yiimp/admin.htpasswd"
auth.require = (
"/" => (
"method" => "basic",
"realm" => "Yiimp Administration",
"require" => "valid-user"
)
)
}

And finally remove the IP filter check in 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/


Credits:

Thanks to globalzon to have released the initial Yaamp source code.

--

You can support this project donating to tpruvot :

BTC : 1Auhps1mHZQpoX4mCcVL8odU81VakZQ6dR
## Credits:

* Thanks to tpruvot for the yiimp release
* Thanks to mailinabox for the installer idea
136 changes: 136 additions & 0 deletions README.md.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
[![Build Status](https://travis-ci.org/tpruvot/yiimp.svg?branch=next)](https://travis-ci.org/tpruvot/yiimp)

#yiimp - yaamp fork

WARNINGS
- Use at your own risks.
- Usage of this software requires abilities with sysadmin, database admin, coin daemons, and sometimes a bit of programming. Running a production pool can literally be more work than a full-time job.

Required:

linux, mysql, php, memcached, a webserver (lighttpd or nginx recommended)


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 that (already set in web/.htaccess):

RewriteEngine on

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


If you use lighttpd, use the following config:

$HTTP["host"] =~ "yiimp.ccminer.org" {
server.document-root = "/var/yaamp/web"
url.rewrite-if-not-file = (
"^(.*)/([0-9]+)$" => "index.php?r=$1&id=$2",
"^(.*)\?(.*)" => "index.php?r=$1&$2",
"^(.*)" => "index.php?r=$1",
"." => "index.php"
)

url.access-deny = ( "~", ".dat", ".log" )
}


For the database, import the initial dump present in the sql/ folder

Then, apply the migration scripts to be in sync with the current git, they are sorted by date of change.

Your database need at least 2 users, one for the web site (php) and one for the stratum connections (password set in config/algo.conf).



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. You can use directory symlinks...


Add your exchange API public and secret keys in these two separated files:

/etc/yiimp/keys.php - fixed path in code
web/serverconfig.php - use sample as base...

You can find sample config files in web/serverconfig.sample.php and web/keys.sample.php

This web application includes some command line tools, add bin/ folder to your path and type "yiimp" to list them, "yiimp checkup" can help to test your initial setup.
Future scripts and maybe the "cron" jobs will then use this yiic console interface.

You need at least 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=blocknotify yaamp.com:port coinid %s

On the website, go to http://server.com/site/adminRights to login as admin. You have to change it to something different in the code (web/yaamp/modules/site/SiteController.php). A real admin login may be added later, but you can setup a password authentification with your web server, sample for lighttpd:

htpasswd -c /etc/yiimp/admin.htpasswd <adminuser>

and in the lighttpd config file:

# Admin access
$HTTP["url"] =~ "^/site/adminRights" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/yiimp/admin.htpasswd"
auth.require = (
"/" => (
"method" => "basic",
"realm" => "Yiimp Administration",
"require" => "valid-user"
)
)
}

And finally remove the IP filter check in 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/


Credits:

Thanks to globalzon to have released the initial Yaamp source code.

--

You can support this project donating to tpruvot :

BTC : 1Auhps1mHZQpoX4mCcVL8odU81VakZQ6dR
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-midnight
6 changes: 0 additions & 6 deletions bin/blocknotify.sh

This file was deleted.

13 changes: 0 additions & 13 deletions bin/kill_stratum

This file was deleted.

2 changes: 1 addition & 1 deletion bin/yiimp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

ROOTDIR=/data/yiimp
DIR=`pwd`
Expand Down
17 changes: 0 additions & 17 deletions bin/yiimp_restart_loop.sh

This file was deleted.

1 change: 1 addition & 0 deletions rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ screen -dmS allium $STRATUM_DIR/run.sh allium
#screen -dmS lyra2 $STRATUM_DIR/run.sh lyra2
screen -dmS lyra2v2 $STRATUM_DIR/run.sh lyra2v2
screen -dmS lyra2z $STRATUM_DIR/run.sh lyra2z
screen -dmS lyra2zz $STRATUM_DIR/run.sh lyra2zz
screen -dmS rainforest $STRATUM_DIR/run.sh rainforest

screen -dmS blakecoin $STRATUM_DIR/run.sh blakecoin # blake 8
Expand Down
6 changes: 6 additions & 0 deletions sql/2018-09-22-workers.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Recent additions to add after db init (.gz)
-- mysql yaamp -p < file.sql

-- filled by the stratum instance, to allow to handle/watch multiple instances

ALTER TABLE `workers` MODIFY COLUMN name VARCHAR(98);
11 changes: 11 additions & 0 deletions sql/2019-03-coins_thepool_life.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Recent additions to add after db init (.gz)
-- mysql yaamp -p < file.sql

-- Additional fields for additions by cryptopool.builders

ALTER TABLE `coins` ADD `link_twitter` varchar(1024) DEFAULT NULL AFTER `link_explorer`;
ALTER TABLE `coins` ADD `link_facebook` varchar(1024) DEFAULT NULL AFTER `link_twitter`;
ALTER TABLE `coins` ADD `donation_address` varchar(1024) DEFAULT NULL AFTER `link_facebook`;
ALTER TABLE `coins` ADD `link_discord` varchar(1024) DEFAULT NULL AFTER `link_twitter`;
ALTER TABLE `coins` ADD `usefaucet` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `donation_address`;
ALTER TABLE `coins` ADD `dedicatedport` int(11) DEFAULT NULL AFTER `rpcport`;
Binary file added sql/2019-11-10-yiimp.sql.gz
Binary file not shown.
1 change: 1 addition & 0 deletions sql/labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@
"MUN":"Muniti",
"MWC":"MultiWalletCoin",
"MXT":"MarteXcoin",
"MXBIT":"Matrixbit",
"MYC":"MyCoin",
"MYR":"Myriadcoin",
"MYST":"MystCoin",
Expand Down
Loading