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

Adding file tree & update coins #312

Open
wants to merge 96 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
32d055b
Switch to POS Type of GBT On Failure
Jul 5, 2016
24584f7
Fix loading of result
Jul 5, 2016
4844947
Commit AUXPOW SegFault Fix
Jul 7, 2016
bce17e0
Update lyra2z.conf
Feb 23, 2017
ebb7613
stratum: optional alert when stratum starts/restarts
Mar 7, 2017
4976c36
stratum: add support for ARC 12.1 & superblocks
Mar 8, 2017
ab7a45b
Update coinbase.cpp
Mar 8, 2017
71b33d2
exchange: added livecoin min trading
Mar 27, 2017
24ffb46
Fix for difficuly/decred confusion
Tristian Mar 29, 2017
959f173
nova: loop through All orders and flush
Tristian May 15, 2017
13a7ab2
nova: fix CancelOrder
Tristian May 17, 2017
550032d
remove unnecessary and broken definition
Tristian Jun 13, 2017
41a7b5f
fix jqplot memory leak
Tristian Jun 21, 2017
b503985
stats: a little refactoring, code style and fix for showing empty gra…
AlmazDelDiablo Aug 27, 2017
bb623f4
Fixed issue where the AverageIncrement function could return 80% of t…
Jaerin Dec 7, 2017
322765c
yiimp: add segwit flag for admin
crackfoo Dec 15, 2017
69c0561
yiimp: update bittrex min trade
crackfoo Jan 9, 2018
beea7e0
yiimp: improve block checks
crackfoo Feb 10, 2018
9030c2a
stratum: log ip of new clients
crackfoo May 1, 2018
c102cb4
trading: get email if a previous tx is late
crackfoo May 16, 2018
2d4d4c4
explorer: support for DUO multialgo
crackfoo Jun 6, 2018
05e9857
Implement basic changes for PoW2 phase 3 activation.
mjmacleod Jul 10, 2018
efe1044
Additional small change.
mjmacleod Jul 10, 2018
e5aeaa3
added seci
soepchik Jul 25, 2018
99768e8
Update coinbase.cpp
soepchik Jul 25, 2018
44c3cbb
Avoid unnecessary coind objects creation.
Aug 5, 2018
123d08d
Fixes for DigiByte core 6.16.3
cod3gen Aug 12, 2018
d6ce1e3
Merge pull request #1 from tpruvot/next
phm87 Aug 21, 2018
4c282c2
Update current_results.php
Natizyskunk Sep 2, 2018
1df5f2f
Update main.php
Natizyskunk Sep 2, 2018
3283895
Update payment.php
Natizyskunk Sep 2, 2018
41b424b
Update payment.php
Natizyskunk Sep 2, 2018
d579f3c
Add files via upload
Natizyskunk Sep 2, 2018
72e9726
Create rc-old.local
Natizyskunk Sep 3, 2018
6917142
Update labels.json
Natizyskunk Sep 3, 2018
5cd7cfa
Merge pull request #1 from Natizyskunk/main
Natizyskunk Sep 3, 2018
520dc5a
Merge pull request #2 from tpruvot/next
Natizyskunk Sep 3, 2018
ebbd0c6
Merge pull request #3 from tpruvot/next
Natizyskunk Sep 15, 2018
6a38172
Update payment.php
Natizyskunk Sep 15, 2018
c407a2c
Update README.md
Natizyskunk Sep 15, 2018
f41973e
Update README.md
Natizyskunk Sep 15, 2018
aa9222a
Update README.md
Natizyskunk Sep 15, 2018
74d7806
Update README.md
Natizyskunk Sep 15, 2018
94fb6c1
Update README.md
Natizyskunk Sep 15, 2018
2cdc079
Update README.md
Natizyskunk Sep 15, 2018
fc23857
Update README.md
Natizyskunk Sep 15, 2018
8e8e3ff
Update README.md
Natizyskunk Sep 15, 2018
31a3110
Update README.md
Natizyskunk Sep 15, 2018
8405995
Update README.md
Natizyskunk Sep 15, 2018
53dfa03
Update README.md
Natizyskunk Sep 15, 2018
7dc7ee2
Update README.md
Natizyskunk Sep 15, 2018
eb03f02
Update README.md
Natizyskunk Sep 15, 2018
c98d468
Update README.md
Natizyskunk Sep 15, 2018
8c6a7c7
Update README.md
Natizyskunk Sep 15, 2018
5d77757
Update README.md
Natizyskunk Sep 15, 2018
94e93f2
Merge pull request #4 from soepchik/next
Natizyskunk Sep 17, 2018
de6b1cd
deleting unnecessary files
Natizyskunk Sep 17, 2018
e6bd749
ading flax coin image
Natizyskunk Sep 17, 2018
85bd257
Merge branch 'cod3gen-next' into next
Natizyskunk Sep 17, 2018
bed6803
Merge pull request #6 from sparkuss/next
Natizyskunk Sep 17, 2018
cfcf2a2
Merge pull request #7 from mjmacleod/next
Natizyskunk Sep 17, 2018
c2b18f5
Merge pull request #8 from phm87/next
Natizyskunk Sep 17, 2018
321b4db
Merge pull request #9 from crackfoo/patch-16
Natizyskunk Sep 17, 2018
363eeb1
Merge pull request #10 from crackfoo/patch-1
Natizyskunk Sep 17, 2018
63cfa0b
Merge pull request #11 from crackfoo/patch-2
Natizyskunk Sep 17, 2018
0cdb0bc
Merge pull request #12 from crackfoo/patch-3
Natizyskunk Sep 17, 2018
984eedd
Merge pull request #13 from crackfoo/patch-4
Natizyskunk Sep 17, 2018
c763395
Merge pull request #15 from crackfoo/patch-6
Natizyskunk Sep 17, 2018
949345e
Merge pull request #17 from crackfoo/patch-8
Natizyskunk Sep 17, 2018
7b4bace
Merge pull request #18 from crackfoo/patch-9
Natizyskunk Sep 17, 2018
09a79ff
Merge pull request #19 from crackfoo/patch-12
Natizyskunk Sep 17, 2018
e75d04e
Merge pull request #20 from crackfoo/patch-15
Natizyskunk Sep 17, 2018
de16c16
Merge pull request #21 from Jaerin/next
Natizyskunk Sep 17, 2018
f25f2f7
Update job.cpp
Natizyskunk Sep 17, 2018
d6a3e18
Merge pull request #22 from AlmazDelDiablo/fix_graphs
Natizyskunk Sep 17, 2018
3fcadc9
Merge pull request #23 from Tristian/memleak-fix
Natizyskunk Sep 17, 2018
4e12c23
Merge pull request #24 from Tristian/patch-1
Natizyskunk Sep 17, 2018
e25a0ae
Merge pull request #25 from Tristian/patch-3
Natizyskunk Sep 17, 2018
d90b458
Merge pull request #26 from Tristian/stratum-fix
Natizyskunk Sep 17, 2018
13038ec
Update db.h
Natizyskunk Sep 17, 2018
f038d60
Update user.cpp
Natizyskunk Sep 17, 2018
87b9947
Update user.cpp
Natizyskunk Sep 17, 2018
c061de8
Update serverconfig.sample.php
Natizyskunk Sep 17, 2018
75efb36
Update blocks.php
Natizyskunk Sep 17, 2018
da1e4e4
Update yaamp.php
Natizyskunk Sep 17, 2018
cf4a382
Update admin_results.php
Natizyskunk Sep 17, 2018
1f49bb8
Merge pull request #27 from ahmedbodi/next
Natizyskunk Sep 17, 2018
819a1ef
Merge pull request #28 from ahmedbodi/patch-1
Natizyskunk Sep 17, 2018
e6ffd4c
Merge pull request #29 from tpruvot/next
Natizyskunk Sep 27, 2018
bca8461
Create .gitignore
Natizyskunk Oct 9, 2018
378dfaa
Merge pull request #30 from tpruvot/next
Natizyskunk Oct 9, 2018
a21a1bf
Merge pull request #31 from tpruvot/next
Natizyskunk Oct 17, 2018
7c9427d
Update PayoutCommand.php
Natizyskunk Dec 3, 2018
e896101
Update coin_results.php
Natizyskunk Dec 3, 2018
013b8af
Merge pull request #34 from tpruvot/next
Natizyskunk Dec 3, 2018
497ced0
Update PayoutCommand.php
Natizyskunk Dec 3, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build Status](https://travis-ci.org/tpruvot/yiimp.svg?branch=next)](https://travis-ci.org/tpruvot/yiimp)

#yiimp - yaamp fork
# yiimp - yaamp fork

WARNINGS
- Use at your own risks.
Expand Down Expand Up @@ -125,6 +125,30 @@ There a lot of unused code in the php branch. Lot come from other projects I wor
http://www.yiiframework.com/


# yiimp - file tree

NOTE: "/yiimp/" in Github repo => "/var/" on VPS (after compiling yiimp)

| Front-End | |
|:-----------|:-----------|
| Homepage | `yiimp/web/yaamp/modules/site/index.php` |
| API | `yiimp/web/yaamp/modules/site/api.php` |
| About us | `yiimp/web/yaamp/modules/site/about.php` |
| Results | `yiimp/web/yaamp/modules/site/results` |
| Dedicated custom ports (line:144) | `if statement for Dedicated custom ports.` |
| Next payment (line:128 & 134) | `yiimp/web/yaamp/ui/main.php` |
| Images | `yiimp/web/images` |

| coins and payment fix | |
|:-----------|:-----------|
| yiimp/web/yaamp/core/backend/payment.php (line:57) | `\|\| $coin->symbol == '<coinSymbol>' \|\|` <br> ` note: (coinSymbol is different from coinAlgo).` |
| yiimp/stratum/algos (new file) | `<algo>.h (copy from another exisitng to make easier)` |
| yiimp/stratum/stratum.h (line:149) | `#include "algos/<algo>.h"` |
| yiimp/web/yaamp/core/functions/yaamp.php | `function yaamp_get_algos; function yaamp_algo_mBTC_factor; function yaamp_get_algo_norm; function getAlgoColors; function getAlgoPort)` |
| sql/labels.json | `"<ticker>":"<coin>", (example: "ETN":"Electroneum",)` |
| rc-old.local (line:18) | `screen -dmS <algo> /var/stratum/run.sh <algo/coin/ticker>` <br> `(example: screen -dmS x11 /var/stratum/run.sh x11)` |


Credits:

Thanks to globalzon to have released the initial Yaamp source code.
Expand Down
29 changes: 29 additions & 0 deletions rc-old.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh -e
#
# rc.local // rc-old.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

screen -dmS main /var/web/main.sh
screen -dmS loop2 /var/web/loop2.sh
screen -dmS blocks /var/web/blocks.sh

screen -dmS x11 /var/stratum/run.sh x11
screen -dmS x13 /var/stratum/run.sh x13
screen -dmS x15 /var/stratum/run.sh x15
screen -dmS sha /var/stratum/run.sh sha
screen -dmS scrypt1 /var/stratum/run.sh scrypt
screen -dmS scrypt2 /var/stratum/run.sh scryptn
screen -dmS neo /var/stratum/run.sh neo
screen -dmS quark /var/stratum/run.sh quark
screen -dmS qubit /var/stratum/run.sh qubit
screen -dmS lyra2 /var/stratum/run.sh lyra2

exit 0
9 changes: 8 additions & 1 deletion sql/labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@
"ETD":"EthereumDark",
"ETHAN":"EthanCoin",
"ETH":"Ethereum",
"ETN":"Electroneum",
"ETNX":"Electronero",
"ETOK":"eToken",
"ETR":"Easterncoin",
"EVENT":"EventToken",
Expand Down Expand Up @@ -376,6 +378,7 @@
"GSX":"GlowShares",
"GUE":"Guerillacoin",
"GUN":"Guncoin",
"GUT":"GPUnion",
"GXG":"GroinCoin",
"H20":"H20Coin",
"H5C":"High5Coin",
Expand Down Expand Up @@ -556,7 +559,7 @@
"NIST5":"N5Coin",
"NJA":"Ninjacoin",
"NKT":"NakamotoDark",
"NLG":"GuldenCoin",
"NLG":"Gulden",
"NMB":"Nimbus",
"NMC":"Namecoin",
"NOAH":"NoahCoin",
Expand Down Expand Up @@ -597,6 +600,7 @@
"PENG":"PenguinCoin",
"PEN":"PenCoin",
"PES":"Pesa",
"PGN":"PigeonCoin",
"PHC":"PHCoin",
"PHO":"Photon",
"PHS":"Philosopherstone",
Expand Down Expand Up @@ -642,7 +646,9 @@
"QTM2":"Quantum2",
"QTZ":"Quartz",
"QUID":"Quid",
"RADIUS":"Radius",
"RAIN":"Rainbowgoldcoin",
"RVN":"RavenCoin",
"RAW":"RawCoin",
"RBBT":"Rabbitcoin",
"RBC":"Rambocoin",
Expand All @@ -651,6 +657,7 @@
"RC":"Russiacoin",
"RDD":"ReddCoin",
"REKT":"RektCoin",
"RENESIS":"Renesis",
"REP":"Republicoin",
"RIC":"Riecoin",
"RIE":"Riecoin",
Expand Down
12 changes: 9 additions & 3 deletions stratum/client_difficulty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,15 @@ int client_send_difficulty(YAAMP_CLIENT *client, double difficulty)

void client_initialize_difficulty(YAAMP_CLIENT *client)
{
char *p = strstr(client->password, "d=");
char *p2 = strstr(client->password, "decred=");
if(!p || p2) return;
char *p = client->password;
char *p2 = strstr(client->password, "decred=") + sizeof(char)*6;

while ( (p=strstr(p,"d=")) != NULL ) {
if (p != p2) break;
p++;
}

if(!p) return;

double diff = client_normalize_difficulty(atof(p+2));
uint64_t user_target = diff_to_target(diff);
Expand Down
117 changes: 116 additions & 1 deletion stratum/coinbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,58 @@ void coinbase_create(YAAMP_COIND *coind, YAAMP_JOB_TEMPLATE *templ, json_value *
coind->reward = (double)available / 100000000 * coind->reward_mul;
return;
}
else if(strcmp(coind->symbol, "SECI") == 0) {
char script_payee[512] = { 0 };
char payees[1];
int npayees = (templ->has_segwit_txs) ? 2 : 1;
bool masternode_payments = json_get_bool(json_result, "masternode_payments");
bool masternodes_enabled = json_get_bool(json_result, "enforce_masternode_payments");

if (masternodes_enabled && masternode_payments) {
const char *payee = json_get_string(json_result, "payee");
json_int_t amount = json_get_int(json_result, "payee_amount");
if (payee && amount)
++npayees;
}

//mainnet
json_int_t charity_amount = 50000000;
sprintf(coind->charity_address, "3FMmX2S8yknSZ4NsxtxbQwQkgvbe81R5kR");

//testnet
//json_int_t charity_amount = 50000000;
//sprintf(coind->charity_address, "93ASJtDuVYVdKXemH9BrtSMscznvsp9stD");
++npayees;
available -= charity_amount;
base58_decode(coind->charity_address, script_payee);
sprintf(payees, "%02x", npayees);
strcat(templ->coinb2, payees);
if (templ->has_segwit_txs) strcat(templ->coinb2, commitment);
char echarity_amount[32];
encode_tx_value(echarity_amount, charity_amount);
strcat(templ->coinb2, echarity_amount);
char coinb2_part[1024] = { 0 };
char coinb2_len[3] = { 0 };
sprintf(coinb2_part, "a9%02x%s87", (unsigned int)(strlen(script_payee) >> 1) & 0xFF, script_payee);
sprintf(coinb2_len, "%02x", (unsigned int)(strlen(coinb2_part) >> 1) & 0xFF);
strcat(templ->coinb2, coinb2_len);
strcat(templ->coinb2, coinb2_part);
if (masternodes_enabled && masternode_payments) {
//duplicated: revisit ++todo
const char *payee = json_get_string(json_result, "payee");
json_int_t amount = json_get_int(json_result, "payee_amount");
if (payee && amount) {
available -= amount;
base58_decode(payee, script_payee);
job_pack_tx(coind, templ->coinb2, amount, script_payee);
}
}
job_pack_tx(coind, templ->coinb2, available, NULL);
strcat(templ->coinb2, "00000000"); // locktime

coind->reward = (double)available / 100000000 * coind->reward_mul;
return;
}

// 2 txs are required on these coins, one for foundation (dev fees)
if(coind->charity_percent && !coind->hasmasternodes)
Expand Down Expand Up @@ -523,6 +575,49 @@ void coinbase_create(YAAMP_COIND *coind, YAAMP_JOB_TEMPLATE *templ, json_value *
//debuglog("%s %d dests %s\n", coind->symbol, npayees, script_dests);
return;
}

else if(strcmp(coind->symbol, "ARC") == 0)
{
char script_dests[2048] = { 0 };
char script_payee[128] = { 0 };
char payees[4];
int npayees = 1;
bool masternode_enabled = json_get_bool(json_result, "goldminenode_payments_enforced");
bool superblocks_enabled = json_get_bool(json_result, "superblocks_enabled");
json_value* superblock = json_get_array(json_result, "superblock");
json_value* masternode = json_get_object(json_result, "goldminenode");
if(superblocks_enabled && superblock) {
for(int i = 0; i < superblock->u.array.length; i++) {
const char *payee = json_get_string(superblock->u.array.values[i], "payee");
json_int_t amount = json_get_int(superblock->u.array.values[i], "amount");
if (payee && amount) {
npayees++;
available -= amount;
base58_decode(payee, script_payee);
job_pack_tx(coind, script_dests, amount, script_payee);
//debuglog("%s superblock %s %u\n", coind->symbol, payee, amount);
}
}
}
if (masternode_enabled && masternode) {
const char *payee = json_get_string(masternode, "payee");
json_int_t amount = json_get_int(masternode, "amount");
if (payee && amount) {
npayees++;
available -= amount;
base58_decode(payee, script_payee);
job_pack_tx(coind, script_dests, amount, script_payee);
}
}
sprintf(payees, "%02x", npayees);
strcat(templ->coinb2, payees);
strcat(templ->coinb2, script_dests);
job_pack_tx(coind, templ->coinb2, available, NULL);
strcat(templ->coinb2, "00000000"); // locktime
coind->reward = (double)available/100000000*coind->reward_mul;
//debuglog("%s %d dests %s\n", coind->symbol, npayees, script_dests);
return;
}


else if(coind->hasmasternodes && coind->oldmasternodes) /* OLD DASH style */
Expand Down Expand Up @@ -595,7 +690,20 @@ void coinbase_create(YAAMP_COIND *coind, YAAMP_JOB_TEMPLATE *templ, json_value *
strcat(templ->coinb2, "01");
}
}

// When Gulden is in phase 3 it is required that the miner deducts the witness subsidy from the reward, it instead gets paid to the witness.
else if(strcmp(coind->symbol, "NLG") == 0)
{
if (templ->has_pow2_witness_data)
{
strcat(templ->coinb2, "03");
//Below line is (probably) not necessary - uncomment this if your pool is earning the wrong subsidy in phase 3.
//available -= templ->pow2_subsidy;
}
else
{
strcat(templ->coinb2, "01");
}
}
else if (templ->has_segwit_txs) {
strcat(templ->coinb2, "02");
strcat(templ->coinb2, commitment);
Expand All @@ -605,6 +713,13 @@ void coinbase_create(YAAMP_COIND *coind, YAAMP_JOB_TEMPLATE *templ, json_value *

job_pack_tx(coind, templ->coinb2, available, NULL);

// Append witness data after normal coinbase outputs - witness data is already hex encoded and already contains amounts.
if(strcmp(coind->symbol, "NLG") == 0 && templ->has_pow2_witness_data)
{
strcat(templ->coinb2, templ->pow2_aux_1);
strcat(templ->coinb2, templ->pow2_aux_2);
}

//if(coind->txmessage)
// strcat(templ->coinb2, "00");

Expand Down
34 changes: 31 additions & 3 deletions stratum/coind_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,15 @@ YAAMP_JOB_TEMPLATE *coind_create_template(YAAMP_COIND *coind)
json_value *json_result = json_get_object(json, "result");
if(!json_result || json_is_null(json_result))
{
coind_error(coind, "getblocktemplate result");
json_value_free(json);
return NULL;
strcpy(params, "[]");
json_value *json = rpc_call(&coind->rpc, "getblocktemplate", params);
json_value *json_result = json_get_object(json, "result");
if(!json || json_is_null(json)) {
coind_error(coind, "getblocktemplate result");
json_value_free(json);
return NULL;
}

}

// segwit rule
Expand Down Expand Up @@ -394,6 +400,28 @@ YAAMP_JOB_TEMPLATE *coind_create_template(YAAMP_COIND *coind)

templ->has_segwit_txs = false;

templ->has_pow2_witness_data = false;

if (strcmp(coind->symbol, "NLG") == 0)
{

json_value* pow2_aux_1_val = json_get_val(json_result, "pow2_aux1");
json_value* pow2_aux_2_val = json_get_val(json_result, "pow2_aux2");
if (pow2_aux_1_val && json_is_string(pow2_aux_1_val) && pow2_aux_2_val && json_is_string(pow2_aux_2_val))
{
const char* pow2_aux_1 = json_get_string(json_result, "pow2_aux1");
const char* pow2_aux_2 = json_get_string(json_result, "pow2_aux2");
if(pow2_aux_1 && strlen(pow2_aux_1) && pow2_aux_2 && strlen(pow2_aux_2))
{
strcpy(templ->pow2_aux_1, pow2_aux_1);
strcpy(templ->pow2_aux_2, pow2_aux_2);
templ->has_pow2_witness_data = true;
templ->pow2_subsidy = json_get_int(json_result, "pow2_subsidy");
}
}
}


templ->has_filtered_txs = false;
templ->filtered_txs_fee = 0;

Expand Down
3 changes: 3 additions & 0 deletions stratum/config/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
ulimit -n 10240
ulimit -u 10240

#echo "$1 stratum started" | mail -s "$1 stratum started" [email protected] # change email address to valid one

cd /var/stratum
while [ -e config/${1}.conf ]; do
gzip -f config/${1}.log
./stratum config/$1
#echo "$1 stratum crashed/restarted" | mail -s "$1 stratum crashed/restarted" [email protected] # change email address to valid one
sleep 1
done
exec bash
Expand Down
5 changes: 5 additions & 0 deletions stratum/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,18 @@ void db_update_coinds(YAAMP_DB *db)
YAAMP_COIND *coind = (YAAMP_COIND *)object_find(&g_list_coind, atoi(row[0]));
if(!coind)
{
if (!strlen(g_stratum_coin_include) || (strlen(g_stratum_coin_include) && strstr(g_stratum_coin_include, row[20])))
{
coind = new YAAMP_COIND;
memset(coind, 0, sizeof(YAAMP_COIND));

coind->newcoind = true;
coind->newblock = true;
coind->id = atoi(row[0]);
coind->aux.coind = coind;
}
else
continue;
}
else
coind->newcoind = false;
Expand Down
1 change: 1 addition & 0 deletions stratum/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ void db_update_coinds(YAAMP_DB *db);
void db_update_remotes(YAAMP_DB *db);

//int db_find_user(YAAMP_DB *db, YAAMP_CLIENT *client);
bool db_check_symbol(YAAMP_DB *db, char *symbol);
void db_add_user(YAAMP_DB *db, YAAMP_CLIENT *client);

void db_add_worker(YAAMP_DB *db, YAAMP_CLIENT *client);
Expand Down
2 changes: 1 addition & 1 deletion stratum/job.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void job_update()
//////////////////////////////////////////////////////////////////////////////////////////////////////

g_list_job.Enter();
job_sort();
// job_sort();

for(CLI li = g_list_job.first; li; li = li->next)
{
Expand Down
7 changes: 7 additions & 0 deletions stratum/job.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ struct YAAMP_JOB_TEMPLATE

int auxs_size;
YAAMP_COIND_AUX *auxs[MAX_AUXS];

// Start of Gulden specific data for phase 3 witnessing
bool has_pow2_witness_data;
int pow2_subsidy;
char pow2_aux_1[2048];
char pow2_aux_2[2048];
// End of Gulden spcific data for phase 3 witnessing
};

#define YAAMP_JOB_MAXSUBIDS 200
Expand Down
Loading