Skip to content
Open

gy #53

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
408 commits
Select commit Hold shift + click to select a range
e60a19b
Update yespowerIC.conf
xiaolin1579 Apr 5, 2020
8c4b157
Update yespowerR16.conf
xiaolin1579 Apr 7, 2020
c1e4a23
Update common_results.php
xiaolin1579 Apr 7, 2020
8e466a8
Update main.php
xiaolin1579 Apr 7, 2020
db4d4b0
Update mining.php
xiaolin1579 Apr 7, 2020
f0adf1c
fix IOTS sendmany error
xiaolin1579 Apr 7, 2020
b7b58fb
Clear unused exchange
xiaolin1579 Apr 7, 2020
d0d5861
Update exchange.php
xiaolin1579 Apr 7, 2020
50cafb2
Clear unused exchange
xiaolin1579 Apr 7, 2020
111bc07
Update markets.php
xiaolin1579 Apr 7, 2020
3fc6c7a
Update CronjobController.php
xiaolin1579 Apr 7, 2020
31cd649
Update poloniex_trading.php
xiaolin1579 Apr 7, 2020
507f8a4
Stratum: Add yespowerLTNCG Algorithm
xiaolin1579 Apr 7, 2020
56ee95d
markets: handle deliondex ticker
xiaolin1579 Apr 7, 2020
0ca25d5
correct builds issue with standard yiimp
xiaolin1579 Apr 8, 2020
2432faa
Create .gitmodules
xiaolin1579 Apr 8, 2020
b3c60e7
fix: workers bug
xiaolin1579 Apr 8, 2020
a647724
Delete current_results1.php
xiaolin1579 Apr 8, 2020
9d50c40
fix: compile error with balloon.c
xiaolin1579 Apr 8, 2020
f5c100b
Fix: "RPC Error: error -8" for Ring Coin
xiaolin1579 Apr 9, 2020
ab30663
Update main.css
xiaolin1579 Apr 11, 2020
012fed2
Update ExchangeCommand.php
xiaolin1579 Apr 11, 2020
02f80ba
Update ExchangeCommand.php
xiaolin1579 Apr 11, 2020
0bc2fff
Clear unused exchange
xiaolin1579 Apr 13, 2020
0a17033
Fix: PHP Error[2] include(CcexAPI.php)
xiaolin1579 Apr 13, 2020
d88ab40
markets: handle unnamed ticker
xiaolin1579 Apr 13, 2020
870e3b9
Delete altmarkets.php
xiaolin1579 Apr 13, 2020
e8d2f0b
markets: handle BiBox ticker
xiaolin1579 Apr 13, 2020
49ef578
fix: compile error
xiaolin1579 Apr 14, 2020
4bee0a0
stratum: Rename "CRDS" to "BCRS"
xiaolin1579 Apr 14, 2020
c636369
Update unnamed.php
xiaolin1579 Apr 14, 2020
ebecd20
stratum: Rename "argon2d-crds" to "argon2d250"
xiaolin1579 Apr 14, 2020
e217b61
stratum: Rename "argon2d-uis" to "argon2d4096"
xiaolin1579 Apr 15, 2020
48e1867
update
xiaolin1579 Apr 15, 2020
07d4f82
Update coinbase.cpp
xiaolin1579 Apr 15, 2020
a6f6c66
Update coind.cpp
xiaolin1579 Apr 16, 2020
194a4ad
Update coins.php
xiaolin1579 Apr 16, 2020
0576319
Update current_results.php
xiaolin1579 Apr 17, 2020
96c8b03
update argon2d
xiaolin1579 Apr 19, 2020
ed2e30f
Add Social icon images
xiaolin1579 Apr 19, 2020
e00e9e4
Add Github icon
xiaolin1579 Apr 23, 2020
3d9f38a
handle addresses differently
xiaolin1579 Apr 25, 2020
e703a46
Update client_submit.cpp
xiaolin1579 May 3, 2020
40fc24e
Update client_difficulty.cpp
xiaolin1579 May 3, 2020
1d851ac
Update coind_template.cpp
xiaolin1579 May 3, 2020
dcdde35
Update rawcoins.php
xiaolin1579 May 10, 2020
c224e72
Delete .gitmodules
xiaolin1579 May 10, 2020
2ac5485
add RandomX submodule
xiaolin1579 May 10, 2020
7c31933
Revert "add RandomX submodule"
xiaolin1579 May 10, 2020
019d6cc
add RandomX submodule
xiaolin1579 May 10, 2020
5a3c029
Delete .gitmodules
xiaolin1579 May 10, 2020
f671331
add RandomX submodule
xiaolin1579 May 10, 2020
03a05bc
Revert "add RandomX submodule"
xiaolin1579 May 11, 2020
a832480
add RandomX submodule
xiaolin1579 May 11, 2020
390b9c1
Delete Github.png
xiaolin1579 May 11, 2020
1927781
Add Github icon
xiaolin1579 May 11, 2020
b56a734
Update CronjobController.php
xiaolin1579 May 23, 2020
748c457
Update clear.php
xiaolin1579 May 23, 2020
ca2837e
Update user_earning_results.php
xiaolin1579 May 23, 2020
25d240b
Update blocks.php
xiaolin1579 May 23, 2020
b9e2317
Stratum: Add Lyra2TDC Algorithm
xiaolin1579 May 27, 2020
3168330
webUI: Add Lyra2TDC Algorithm
xiaolin1579 May 27, 2020
93d19ae
Stratum: Fix lyra2TDC low diff share
xiaolin1579 May 27, 2020
ad63f8d
stratum: Fix "Segmentation fault" in other coins after adding the Lyr…
xiaolin1579 May 28, 2020
36a342f
Revert "stratum: Fix "Segmentation fault" in other coins after adding…
xiaolin1579 May 30, 2020
28adfab
stratum: Fix "Segmentation fault" in other coins after adding the Lyr…
xiaolin1579 May 30, 2020
4a0d231
stratum: re-add Lyra2TDC Algorithm
xiaolin1579 May 30, 2020
f55e284
$criteria->addInCondition('t.algo', $r_algo);
xiaolin1579 May 31, 2020
e8465a4
Update payment.php
xiaolin1579 May 31, 2020
0eab1fd
Update block_results.php
xiaolin1579 May 31, 2020
72a9f95
Update found_results.php
xiaolin1579 May 31, 2020
0261065
Update user_earning_results.php
xiaolin1579 May 31, 2020
f565c18
Update stratum.h
xiaolin1579 Jun 1, 2020
f1a7139
Update mining.php
xiaolin1579 Jun 2, 2020
f75dee3
Start Developing SOLO function (m = solo) - [Not complete]
xiaolin1579 Jun 2, 2020
73abc49
Update user_earning_results.php
xiaolin1579 Jun 4, 2020
37eee93
SOLO function (m = solo) [Complate]
xiaolin1579 Jun 5, 2020
97ee3f1
Update block_results.php
xiaolin1579 Jun 6, 2020
5ec0897
Update found_results.php
xiaolin1579 Jun 6, 2020
8ef7f6e
SOLO: Got solo fees function implemented per algo just as the regular…
xiaolin1579 Jun 7, 2020
02950b7
Update current_results.php
xiaolin1579 Jun 7, 2020
ee06140
API: Add Solo API
xiaolin1579 Jun 7, 2020
b1ac80f
SOLO: Add configFixedPoolFeesSolo Function
xiaolin1579 Jun 8, 2020
93a15c0
Fix: Show worker per coin
xiaolin1579 Jun 8, 2020
634c7af
Update block_results.php
xiaolin1579 Jun 13, 2020
76b44d0
WebUI: Add Wallet found blocks result
xiaolin1579 Jun 13, 2020
d0937e0
Update wallet_found_results.php
xiaolin1579 Jun 13, 2020
6d38420
Stratum: Add Curvehash [curve25519] Algorithm
xiaolin1579 Sep 6, 2020
e781e26
Stratum: Fix compile error
xiaolin1579 Sep 9, 2020
386a496
Stratum: Add X11K Algorithm
xiaolin1579 Sep 19, 2020
003e735
Stratum: Add Mega-BTX Algorithm
xiaolin1579 Sep 22, 2020
e221411
Stratum: Add Mega-MEC Algorithm
xiaolin1579 Sep 23, 2020
14ad183
Api: Fix port symbol
xiaolin1579 Oct 17, 2020
47707f6
Update ApiController.php
xiaolin1579 Oct 27, 2020
434e60d
implement workaround by requesting a legacy addr for coinbase
xiaolin1579 Oct 29, 2020
0e857d6
NiceHash Support
xiaolin1579 Nov 2, 2020
8588115
Stratum:Add IDX and VGC
xiaolin1579 Nov 2, 2020
2df8673
SOLO function (m=solo) - [completed]
xiaolin1579 Nov 2, 2020
6d6bfe1
TTF Update (Back to the original)
xiaolin1579 Nov 12, 2020
0b30856
Stratum: Add X11KVS Algorithm
xiaolin1579 Nov 12, 2020
9850dce
Revert "TTF Update (Back to the original)"
xiaolin1579 Nov 22, 2020
1eb1118
TTF Update
xiaolin1579 Nov 22, 2020
0b96a08
[exchange] add support altilly.com
xiaolin1579 Nov 25, 2020
e78c757
Stratum: Add yespowerLITB Algorithm
xiaolin1579 Nov 25, 2020
7238b6a
Stratum: Fix Curvehash Error (REJECTED CURVE block ERROR Curvehash Bl…
xiaolin1579 Dec 1, 2020
6e09e48
Revert "Stratum: Fix Curvehash Error (REJECTED CURVE block ERROR Curv…
xiaolin1579 Dec 1, 2020
eea717f
Stratum: Fix Curvehash Error #9
xiaolin1579 Dec 1, 2020
0e47b72
Stratum: [CurvaHash] without adding -f 65536 to cpuminer-curvehash.
xiaolin1579 Dec 7, 2020
c8f3ac4
Revert "Stratum: [CurvaHash] without adding -f 65536 to cpuminer-curv…
xiaolin1579 Dec 7, 2020
6501a72
Stratum: [CurveHash] without adding -f 65536 to cpuminer-curvehash.
xiaolin1579 Dec 7, 2020
5e708f8
Stratum: That allows diff to be set below 0.001
xiaolin1579 Dec 7, 2020
2aca46d
Create 2020-11-10-yaamp.sql.gz
xiaolin1579 Dec 15, 2020
a6e075f
Fix CURVE parment
xiaolin1579 Dec 17, 2020
d7a2d00
Stratum: Add Phi5 Algorithm ( Combode [CBE] )
xiaolin1579 Jan 3, 2021
5033a78
Fix Combode[CBE] payment
xiaolin1579 Jan 5, 2021
1ceacb1
Stratum: Add yespowerTIDE Algorithm [Tidecoin (TDC)] & CPUpower Algor…
xiaolin1579 Jan 10, 2021
d22a9c5
Stratum: Add Lyra2z330 Algorithm
xiaolin1579 Jan 22, 2021
9e37a3b
Stratum: Add support GravityCoin[GXX]
xiaolin1579 Jan 22, 2021
1dcad1f
Remove RandomX
xiaolin1579 Jan 26, 2021
2b3a248
Update index.php
xiaolin1579 Jan 26, 2021
6a0fc90
Update history_results.php
xiaolin1579 Jan 26, 2021
780660e
Update found_results.php
xiaolin1579 Jan 27, 2021
a60eb64
Fix: "RPC Error: error -8" for TideCoin
xiaolin1579 Jan 27, 2021
d2e8d07
Stratum: Remove lyra2TDC Algorithm
xiaolin1579 Jan 27, 2021
320b84e
Stratum: Remove lyra2TDC Algorithm
xiaolin1579 Jan 27, 2021
95b16bb
Update mining.php
xiaolin1579 Jan 29, 2021
8909f21
Update mining.php
xiaolin1579 Jan 29, 2021
480fa4e
update stratum
xiaolin1579 Feb 6, 2021
becc727
Update coind_template.cpp
xiaolin1579 Feb 7, 2021
cb57725
Update db.cpp
xiaolin1579 Feb 7, 2021
0bc24ea
Update coind.cpp
xiaolin1579 Feb 7, 2021
ee90391
Update client_submit.cpp
xiaolin1579 Feb 7, 2021
a64df30
Update client.h
xiaolin1579 Feb 7, 2021
a6b2d22
Update client.cpp
xiaolin1579 Feb 7, 2021
fc03ae8
Remove lyra2TDC
xiaolin1579 Feb 7, 2021
ec5e0ca
Update remote.cpp
xiaolin1579 Feb 7, 2021
dc95ca6
Update client_submit.cpp
xiaolin1579 Feb 7, 2021
6296b37
Update client.cpp
xiaolin1579 Feb 7, 2021
b588521
Update client.h
xiaolin1579 Feb 7, 2021
a08a21a
Update job.h
xiaolin1579 Feb 7, 2021
9c8f3e4
Update job_send.cpp
xiaolin1579 Feb 7, 2021
9ac552a
Update client_difficulty.cpp
xiaolin1579 Feb 7, 2021
d23b7f4
Update coind_submit.cpp
xiaolin1579 Feb 7, 2021
fe34480
Update coind_template.cpp
xiaolin1579 Feb 7, 2021
9ed10a3
Update db.cpp
xiaolin1579 Feb 7, 2021
1f8a00a
Update coinbase.cpp
xiaolin1579 Feb 7, 2021
5fd20dc
Update client_submit.cpp
xiaolin1579 Feb 7, 2021
6d096f1
Update Makefile
xiaolin1579 Feb 11, 2021
3d51bff
Stratum: Add Power2b (yespower2b) Algorithm
xiaolin1579 Feb 11, 2021
1d29840
Stratum: fix compile error from PBKDF2_SHA256
xiaolin1579 Feb 11, 2021
75e9107
correct slow-memory leak in monitor
xiaolin1579 Feb 12, 2021
65a6b53
Fix: MicroBitcoin payment issue
xiaolin1579 Feb 22, 2021
e60c076
Stratum: Add Ghost Rider(GR) Algorithm
xiaolin1579 Mar 2, 2021
629a37d
Update client_difficulty.cpp
xiaolin1579 Mar 2, 2021
4f2b2f5
Update coinbase.cpp
npq7721 Mar 4, 2021
2f76730
Merge pull request #14 from npq7721/patch-1
xiaolin1579 Mar 4, 2021
2f603c8
Update RTM
xiaolin1579 Mar 5, 2021
1d05d07
Stratum: Add Argon2d16000 Algorithm [Bitcreds]
xiaolin1579 Mar 14, 2021
c34a544
Stratum: Add YespowerMGPC Algorithm [Magpiecoin]
xiaolin1579 Mar 14, 2021
9b54292
Stratum: Add HeavyHash Algorithm [OBTC]
xiaolin1579 Mar 23, 2021
ff3b7df
Fix: "RPC Error: error -8" for OBTC
xiaolin1579 Mar 24, 2021
7d6d581
Stratum: Add Anime Algorithm [Animecoin]
xiaolin1579 Apr 10, 2021
0480dab
Update index.php
xiaolin1579 Apr 14, 2021
bb3d505
Update index.php
xiaolin1579 Apr 14, 2021
877422d
Stratum: Add Support ButKoin
xiaolin1579 Apr 25, 2021
cd629fd
Update argon2.c
xiaolin1579 May 17, 2021
3273cd0
[exchange] add support v2.altmarkets.io
xiaolin1579 May 17, 2021
f1691cf
[stratum] reverb argon2
xiaolin1579 May 18, 2021
43b3c79
[web] add dedicatedport from coins
xiaolin1579 May 18, 2021
5e02ca9
Revert "[web] add dedicatedport from coins"
xiaolin1579 May 18, 2021
4b2048b
additions
xiaolin1579 May 18, 2021
f831ec2
Update argon2.c
xiaolin1579 May 20, 2021
3bacd3b
Update argon2.c
xiaolin1579 May 20, 2021
e19506c
Update argon2.h
xiaolin1579 May 20, 2021
f36c481
Update argon2.h
xiaolin1579 May 20, 2021
bcf7d47
Update argon2.c
xiaolin1579 May 20, 2021
f3cc432
Update argon2d.c
xiaolin1579 May 20, 2021
ce6f293
Update argon2d.c
xiaolin1579 May 20, 2021
5b48e4a
Update argon2d.c
xiaolin1579 May 20, 2021
c773176
update argon
xiaolin1579 May 20, 2021
6bbdae0
Update argon2d.c
xiaolin1579 May 20, 2021
72a8657
Update makefile
xiaolin1579 May 20, 2021
bd3f185
Update argon2.c
xiaolin1579 May 20, 2021
c62035b
Update argon2.h
xiaolin1579 May 20, 2021
b9bc8e0
Update argon2.h
xiaolin1579 May 20, 2021
7a6fca6
Update argon2.c
xiaolin1579 May 20, 2021
462e720
Update argon2.c
xiaolin1579 May 20, 2021
32e97d4
Update argon2.c
xiaolin1579 May 20, 2021
9b67613
Update argon2.h
xiaolin1579 May 20, 2021
526a9db
Update coin_form.php
xiaolin1579 May 20, 2021
7d7c7a9
Update core.c
xiaolin1579 May 20, 2021
77bc06a
Update core.h
xiaolin1579 May 20, 2021
90e97b2
Update core.c
xiaolin1579 May 20, 2021
ba72c02
Update encoding.c
xiaolin1579 May 20, 2021
eed7eae
Update encoding.h
xiaolin1579 May 20, 2021
76ae130
Update opt.c
xiaolin1579 May 20, 2021
1ab2efa
Update argon2d.c
xiaolin1579 May 20, 2021
90ccb57
Create genkat.c
xiaolin1579 May 20, 2021
2abebee
Create genkat.h
xiaolin1579 May 20, 2021
c927ec1
Update makefile
xiaolin1579 May 20, 2021
22cb370
Update argon2.h
xiaolin1579 May 20, 2021
00de25d
Create ref.c
xiaolin1579 May 20, 2021
5afc57b
Update makefile
xiaolin1579 May 20, 2021
e27dd19
Update ref.c
xiaolin1579 May 20, 2021
6d2231b
Create bench.c
xiaolin1579 May 20, 2021
887edd1
Update makefile
xiaolin1579 May 20, 2021
22643e7
Create run.c
xiaolin1579 May 20, 2021
cc51a8c
Update makefile
xiaolin1579 May 20, 2021
00c9317
Create test.c
xiaolin1579 May 20, 2021
7d00ad2
Update makefile
xiaolin1579 May 20, 2021
2d0d6f6
Delete argon2a.c
xiaolin1579 May 20, 2021
0f1ef73
Delete argon2a.h
xiaolin1579 May 20, 2021
37cee64
Update makefile
xiaolin1579 May 20, 2021
f1d4689
Update stratum.cpp
xiaolin1579 May 20, 2021
153b884
Update stratum.h
xiaolin1579 May 20, 2021
1abf8e5
fix #17
xiaolin1579 Jun 15, 2021
c382d24
Stratum: Add YespowerARWN Algorithm [Arowanacoin]
xiaolin1579 Jun 15, 2021
fa06f32
Fix #18
xiaolin1579 Jun 18, 2021
820f683
stratum: remove argon2d4096
xiaolin1579 Jun 21, 2021
6ccd59a
Updates argon2d for argon2d250 and other variables except argon2d4096
xiaolin1579 Jun 21, 2021
0804f0f
Create 2021-06-21-yaamp.sql.gz
xiaolin1579 Jun 21, 2021
c39c6ac
Update 2021-06-21-yaamp.sql.gz
xiaolin1579 Jun 21, 2021
9fb855b
Delete 2020-11-10-yaamp.sql.gz
xiaolin1579 Jun 21, 2021
f21b942
Revert "Delete 2020-11-10-yaamp.sql.gz"
xiaolin1579 Jun 22, 2021
157afb6
Update coinbase.cpp
xiaolin1579 Jun 26, 2021
21b63b9
Update coinbase.cpp
xiaolin1579 Jun 26, 2021
e20f01a
Update coinbase.cpp
xiaolin1579 Jun 26, 2021
a99a3d7
Update coinbase.cpp
xiaolin1579 Jun 26, 2021
36cf1e3
Update coinbase.cpp
xiaolin1579 Jun 26, 2021
2f8f254
Update coinbase.cpp
xiaolin1579 Jun 27, 2021
a7078c4
Revert "Update coinbase.cpp"
xiaolin1579 Jun 27, 2021
e399f1d
Revert "Update coinbase.cpp"
xiaolin1579 Jun 27, 2021
29a68db
Revert "Update coinbase.cpp"
xiaolin1579 Jun 27, 2021
fa0f4a5
Revert "Update coinbase.cpp"
xiaolin1579 Jun 27, 2021
950288c
Revert "Update coinbase.cpp"
xiaolin1579 Jun 27, 2021
8bf5a23
Revert "Update coinbase.cpp"
xiaolin1579 Jun 27, 2021
b4b8f97
Stratum: Add Alterdot[ADOT] to coinbase.cpp
xiaolin1579 Jun 27, 2021
ccab589
Fix ADOT payment problems
xiaolin1579 Jun 30, 2021
c46bf1b
Add Raptoreum[RTM]
xiaolin1579 Jul 7, 2021
f813948
Add WhatCoin (WATC)
xiaolin1579 Jul 7, 2021
b58d29d
Stratun: Fix WhatCoin (WATC) not pay smartnode
xiaolin1579 Jul 13, 2021
b6c1c02
Stratun: Fix compile error
xiaolin1579 Jul 13, 2021
a56df6d
Revert "Stratun: Fix compile error"
xiaolin1579 Jul 13, 2021
3d06823
Revert "Stratun: Fix WhatCoin (WATC) not pay smartnode"
xiaolin1579 Jul 13, 2021
6639bff
Stratum: Fix WhatCoin (WATC) not pay smartnode
xiaolin1579 Jul 13, 2021
0b494f3
Add Cosa Algorithm [Cosanta]
xiaolin1579 Jul 26, 2021
3a8c858
Update stratum.cpp
xiaolin1579 Aug 25, 2021
140bd83
Stratum: Add MinotaurX Algorithm
xiaolin1579 Oct 7, 2021
a0a5cba
Update coinbase.cpp
furcalor Oct 19, 2021
40d59b0
Merge pull request #29 from furcalor/poolmine
xiaolin1579 Oct 20, 2021
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ web/assets/
.idea/*
web/yaamp/.idea/
*.0
.vscode/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "stratum/secp256k1"]
path = stratum/secp256k1
url = https://github.com/bitcoin-core/secp256k1
7 changes: 7 additions & 0 deletions .settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="src" path=""/>
<classpathentry kind="output" path=""/>
</classpath>
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.container
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.JRE_CONTAINER
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Global
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/tpruvot/yiimp.svg?branch=next)](https://travis-ci.org/tpruvot/yiimp)
[![Build Status](https://travis-ci.org/Kudaraidee/yiimp.svg?branch=next)](https://travis-ci.org/Kudaraidee/yiimp)

#yiimp - yaamp fork

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(52);
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`;
6 changes: 6 additions & 0 deletions sql/2020-06-03-blocks.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

-- add blocks for solo function

ALTER TABLE `blocks` ADD `solo` TINYINT(1) NULL DEFAULT NULL AFTER `category`;
Binary file added sql/2020-11-10-yaamp.sql.gz
Binary file not shown.
Binary file added sql/2021-06-21-yaamp.sql.gz
Binary file not shown.
26 changes: 20 additions & 6 deletions stratum/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

CC=gcc
CC= gcc -no-pie

CFLAGS= -g -march=native
SQLFLAGS= `mysql_config --cflags --libs`
Expand All @@ -11,7 +11,7 @@ CFLAGS += -DNO_EXCHANGE
#CFLAGS=-c -O2 -I /usr/include/mysql
LDFLAGS=-O2 `mysql_config --libs`

LDLIBS=iniparser/libiniparser.a algos/libalgos.a sha3/libhash.a -lpthread -lgmp -lm -lstdc++
LDLIBS=iniparser/libiniparser.a algos/libalgos.a sha3/libhash.a -Isecp256k1/include secp256k1/.libs/libsecp256k1.a -lpthread -lgmp -lm -lstdc++ -lssl -lcrypto
LDLIBS+=-lmysqlclient

SOURCES=stratum.cpp db.cpp coind.cpp coind_aux.cpp coind_template.cpp coind_submit.cpp util.cpp list.cpp \
Expand All @@ -29,16 +29,25 @@ OUTPUT=stratum

CODEDIR1=algos
CODEDIR2=sha3
CODEDIR3=iniparser
CODEDIR4=secp256k1

.PHONY: projectcode1 projectcode2

all: projectcode1 projectcode2 $(SOURCES) $(OUTPUT)
.PHONY: projectcode1 projectcode2 projectcode3 projectcode4

all: projectcode1 projectcode2 projectcode3 projectcode4 $(SOURCES) $(OUTPUT)

projectcode1:
$(MAKE) -C $(CODEDIR1)
git submodule init && git submodule update && $(MAKE) -C $(CODEDIR1)

projectcode2:
$(MAKE) -C $(CODEDIR2)

projectcode3:
$(MAKE) -C $(CODEDIR3)

projectcode4:
cd $(CODEDIR4) && chmod +x autogen.sh && ./autogen.sh && ./configure --enable-experimental --enable-module-ecdh --with-bignum=no --enable-endomorphism && $(MAKE)

$(SOURCES): stratum.h util.h

Expand All @@ -58,7 +67,12 @@ clean:
rm -f sha3/*.o
rm -f sha3/*.a
rm -f algos/ar2/*.o

rm -f algos/blake2/*.o
rm -f algos/blake2-ref/*.o
rm -f algos/honeycomb/*.o
rm -f algos/SWIFFTX/*.o
rm -f algos/yespower/*.o

install: clean all
strip -s stratum
cp stratum /usr/local/bin/
Expand Down
173 changes: 173 additions & 0 deletions stratum/algos/Lyra2.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,176 @@ int LYRA2(void *K, int64_t kLen, const void *pwd, int32_t pwdlen, const void *sa

return 0;
}

int LYRA2_3(void *K, int64_t kLen, const void *pwd, int32_t pwdlen, const void *salt, int32_t saltlen, int64_t timeCost, const int16_t nRows, const int16_t nCols)
{
//============================= Basic variables ============================//
int64_t row = 2; //index of row to be processed
int64_t prev = 1; //index of prev (last row ever computed/modified)
int64_t rowa = 0; //index of row* (a previous row, deterministically picked during Setup and randomly picked while Wandering)
int64_t tau; //Time Loop iterator
int64_t step = 1; //Visitation step (used during Setup and Wandering phases)
int64_t window = 2; //Visitation window (used to define which rows can be revisited during Setup)
int64_t gap = 1; //Modifier to the step, assuming the values 1 or -1
int64_t i; //auxiliary iteration counter
int64_t v64; // 64bit var for memcpy
uint64_t instance = 0;
//==========================================================================/

//========== Initializing the Memory Matrix and pointers to it =============//
//Tries to allocate enough space for the whole memory matrix

const int64_t ROW_LEN_INT64 = BLOCK_LEN_INT64 * nCols;
const int64_t ROW_LEN_BYTES = ROW_LEN_INT64 * 8;
// for Lyra2REv2, nCols = 4, v1 was using 8
const int64_t BLOCK_LEN = (nCols == 4) ? BLOCK_LEN_BLAKE2_SAFE_INT64 : BLOCK_LEN_BLAKE2_SAFE_BYTES;

size_t sz = (size_t)ROW_LEN_BYTES * nRows;
uint64_t *wholeMatrix = malloc(sz);
if (wholeMatrix == NULL) {
return -1;
}
memset(wholeMatrix, 0, sz);

//Allocates pointers to each row of the matrix
uint64_t **memMatrix = malloc(sizeof(uint64_t*) * nRows);
if (memMatrix == NULL) {
return -1;
}
//Places the pointers in the correct positions
uint64_t *ptrWord = wholeMatrix;
for (i = 0; i < nRows; i++) {
memMatrix[i] = ptrWord;
ptrWord += ROW_LEN_INT64;
}
//==========================================================================/

//============= Getting the password + salt + basil padded with 10*1 ===============//
//OBS.:The memory matrix will temporarily hold the password: not for saving memory,
//but this ensures that the password copied locally will be overwritten as soon as possible

//First, we clean enough blocks for the password, salt, basil and padding
int64_t nBlocksInput = ((saltlen + pwdlen + 6 * sizeof(uint64_t)) / BLOCK_LEN_BLAKE2_SAFE_BYTES) + 1;

byte *ptrByte = (byte*) wholeMatrix;

//Prepends the password
memcpy(ptrByte, pwd, pwdlen);
ptrByte += pwdlen;

//Concatenates the salt
memcpy(ptrByte, salt, saltlen);
ptrByte += saltlen;

memset(ptrByte, 0, (size_t) (nBlocksInput * BLOCK_LEN_BLAKE2_SAFE_BYTES - (saltlen + pwdlen)));

//Concatenates the basil: every integer passed as parameter, in the order they are provided by the interface
memcpy(ptrByte, &kLen, sizeof(int64_t));
ptrByte += sizeof(uint64_t);
v64 = pwdlen;
memcpy(ptrByte, &v64, sizeof(int64_t));
ptrByte += sizeof(uint64_t);
v64 = saltlen;
memcpy(ptrByte, &v64, sizeof(int64_t));
ptrByte += sizeof(uint64_t);
v64 = timeCost;
memcpy(ptrByte, &v64, sizeof(int64_t));
ptrByte += sizeof(uint64_t);
v64 = nRows;
memcpy(ptrByte, &v64, sizeof(int64_t));
ptrByte += sizeof(uint64_t);
v64 = nCols;
memcpy(ptrByte, &v64, sizeof(int64_t));
ptrByte += sizeof(uint64_t);

//Now comes the padding
*ptrByte = 0x80; //first byte of padding: right after the password
ptrByte = (byte*) wholeMatrix; //resets the pointer to the start of the memory matrix
ptrByte += nBlocksInput * BLOCK_LEN_BLAKE2_SAFE_BYTES - 1; //sets the pointer to the correct position: end of incomplete block
*ptrByte ^= 0x01; //last byte of padding: at the end of the last incomplete block
//==========================================================================/

//======================= Initializing the Sponge State ====================//
//Sponge state: 16 uint64_t, BLOCK_LEN_INT64 words of them for the bitrate (b) and the remainder for the capacity (c)
uint64_t state[16];
initState(state);
//==========================================================================/

//================================ Setup Phase =============================//
//Absorbing salt, password and basil: this is the only place in which the block length is hard-coded to 512 bits
ptrWord = wholeMatrix;
for (i = 0; i < nBlocksInput; i++) {
absorbBlockBlake2Safe(state, ptrWord); //absorbs each block of pad(pwd || salt || basil)
ptrWord += BLOCK_LEN; //goes to next block of pad(pwd || salt || basil)
}

//Initializes M[0] and M[1]
reducedSqueezeRow0(state, memMatrix[0], nCols); //The locally copied password is most likely overwritten here

reducedDuplexRow1(state, memMatrix[0], memMatrix[1], nCols);

do {
//M[row] = rand; //M[row*] = M[row*] XOR rotW(rand)

reducedDuplexRowSetup(state, memMatrix[prev], memMatrix[rowa], memMatrix[row], nCols);

//updates the value of row* (deterministically picked during Setup))
rowa = (rowa + step) & (window - 1);
//update prev: it now points to the last row ever computed
prev = row;
//updates row: goes to the next row to be computed
row++;

//Checks if all rows in the window where visited.
if (rowa == 0) {
step = window + gap; //changes the step: approximately doubles its value
window *= 2; //doubles the size of the re-visitation window
gap = -gap; //inverts the modifier to the step
}

} while (row < nRows);
//==========================================================================/

//============================ Wandering Phase =============================//
row = 0; //Resets the visitation to the first row of the memory matrix
for (tau = 1; tau <= timeCost; tau++) {
//Step is approximately half the number of all rows of the memory matrix for an odd tau; otherwise, it is -1
step = (tau % 2 == 0) ? -1 : nRows / 2 - 1;
do {
//Selects a pseudorandom index row*
//------------------------------------------------------------------------------------------
instance = state[instance % 16];
rowa = state[instance % 16] & (unsigned int)(nRows-1);

//rowa = state[0] & (unsigned int)(nRows-1); //(USE THIS IF nRows IS A POWER OF 2)
//rowa = state[0] % nRows; //(USE THIS FOR THE "GENERIC" CASE)
//------------------------------------------------------------------------------------------

//Performs a reduced-round duplexing operation over M[row*] XOR M[prev], updating both M[row*] and M[row]
reducedDuplexRow(state, memMatrix[prev], memMatrix[rowa], memMatrix[row], nCols);

//update prev: it now points to the last row ever computed
prev = row;

//updates row: goes to the next row to be computed
//------------------------------------------------------------------------------------------
row = (row + step) & (unsigned int)(nRows-1); //(USE THIS IF nRows IS A POWER OF 2)
//row = (row + step) % nRows; //(USE THIS FOR THE "GENERIC" CASE)
//------------------------------------------------------------------------------------------

} while (row != 0);
}

//============================ Wrap-up Phase ===============================//
//Absorbs the last block of the memory matrix
absorbBlock(state, memMatrix[rowa]);

//Squeezes the key
squeeze(state, K, (unsigned int) kLen);

//========================= Freeing the memory =============================//
free(memMatrix);
free(wholeMatrix);

return 0;
}
1 change: 1 addition & 0 deletions stratum/algos/Lyra2.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ typedef unsigned char byte;
#endif

int LYRA2(void *K, int64_t kLen, const void *pwd, int32_t pwdlen, const void *salt, int32_t saltlen, int64_t timeCost, const int64_t nRows, const int16_t nCols);
int LYRA2_3(void *K, int64_t kLen, const void *pwd, int32_t pwdlen, const void *salt, int32_t saltlen, int64_t timeCost, const int16_t nRows, const int16_t nCols);

#endif /* LYRA2_H_ */
Loading