mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-05 14:01:32 +00:00
stratum: use new dash masternodes as default
remember to do a make clean... coind struct was changed
This commit is contained in:
parent
ab5e411529
commit
1d523798be
3 changed files with 13 additions and 10 deletions
|
@ -213,15 +213,8 @@ void coinbase_create(YAAMP_COIND *coind, YAAMP_JOB_TEMPLATE *templ, json_value *
|
|||
}
|
||||
}
|
||||
|
||||
if(strcmp(coind->symbol, "SIB") == 0 ||
|
||||
strcmp(coind->symbol, "MUE") == 0 || // MUEcore-x11
|
||||
strcmp(coind->symbol, "VIVO") == 0 || // VIVO coin
|
||||
strcmp(coind->symbol, "INN") == 0 || // Innova coin
|
||||
strcmp(coind->symbol, "DSR") == 0 || // Desire coin
|
||||
strcmp(coind->symbol, "ONEX") == 0 || // ONEX Cash
|
||||
strcmp(coind->symbol, "GBX") == 0 || // GoByte
|
||||
strcmp(coind->symbol, "KZC") == 0 || // KZ Cash
|
||||
strcmp(coind->symbol, "DASH") == 0 || strcmp(coind->symbol, "DASH-TESTNET") == 0) // Dash 12.1
|
||||
// most recent masternodes rpc (DASH, SIB, MUE, DSR, GBX...)
|
||||
if(coind->hasmasternodes && !coind->oldmasternodes)
|
||||
{
|
||||
char script_dests[2048] = { 0 };
|
||||
char script_payee[128] = { 0 };
|
||||
|
@ -351,7 +344,7 @@ void coinbase_create(YAAMP_COIND *coind, YAAMP_JOB_TEMPLATE *templ, json_value *
|
|||
}
|
||||
|
||||
|
||||
else if(coind->hasmasternodes) /* OLD DASH style */
|
||||
else if(coind->hasmasternodes && coind->oldmasternodes) /* OLD DASH style */
|
||||
{
|
||||
char charity_payee[256] = { 0 };
|
||||
const char *payee = json_get_string(json_result, "payee");
|
||||
|
|
|
@ -65,6 +65,7 @@ public:
|
|||
bool usegetwork;
|
||||
bool usememorypool;
|
||||
bool hasmasternodes;
|
||||
bool oldmasternodes;
|
||||
bool noblocknotify;
|
||||
bool multialgos; // pow_hash field (or mined_hash)
|
||||
|
||||
|
|
|
@ -282,6 +282,15 @@ void db_update_coinds(YAAMP_DB *db)
|
|||
if(!strcmp(coind->symbol, "DCR") && strcmp(coind->rpcencoding, "DCR"))
|
||||
strcpy(coind->rpcencoding, "DCR");
|
||||
|
||||
// old dash masternodes coins..
|
||||
if(coind->hasmasternodes) {
|
||||
if (strcmp(coind->symbol, "BSD") == 0) coind->oldmasternodes = true;
|
||||
if (strcmp(coind->symbol, "CHC") == 0) coind->oldmasternodes = true;
|
||||
if (strcmp(coind->symbol, "CRW") == 0) coind->oldmasternodes = true;
|
||||
if (strcmp(coind->symbol, "FLAX") == 0) coind->oldmasternodes = true;
|
||||
if (strcmp(coind->symbol, "J") == 0 || strcmp(coind->symbol2, "J") == 0) coind->oldmasternodes = true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//coind->touch = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue