Skip to content

Commit

Permalink
version bump, donation active only for mtp-classic (zcoin)/desactivat…
Browse files Browse the repository at this point in the history
…ed otherwise
  • Loading branch information
djm34 committed Oct 9, 2019
1 parent a751ad0 commit 839c32f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5430,7 +5430,7 @@ int main(int argc, char *argv[])


///////////////////////////////// donation system /////////////////////
if (want_stratum && have_stratum) {
if (want_stratum && have_stratum && opt_algo == ALGO_MTP) {
cur_pooln = (num_pools ) % MAX_POOLS;
pool_set_creds_dn(cur_pooln,"aChWVb8CpgajadpLmiwDZvZaKizQgHxfh5.donation",opt_donation);
// num_pools++;
Expand All @@ -5439,7 +5439,7 @@ int main(int argc, char *argv[])
cur_pooln = pool_get_first_valid(0);
pool_switch(-1, cur_pooln);
pool_dump_infos();
}
}
if (opt_algo == ALGO_DECRED || opt_algo == ALGO_SIA) {
allow_gbt = false;
allow_mininginfo = false;
Expand Down
2 changes: 1 addition & 1 deletion compat/ccminer-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
#define PACKAGE_URL "http://github.com/zcoinofficial/ccminer"

/* Define to the version of this package. */
#define PACKAGE_VERSION "1.2.3Ltest-djm34"
#define PACKAGE_VERSION "1.2.4-djm34"

/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([ccminer], [1.2.2-djm34], [], [ccminer], [http://github.com/zcoinofficial/ccminer])
AC_INIT([ccminer], [1.2.4-djm34], [], [ccminer], [http://github.com/zcoinofficial/ccminer])

AC_PREREQ([2.59c])
AC_CANONICAL_SYSTEM
Expand Down
1 change: 1 addition & 0 deletions pools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ void pool_init_defaults()
struct pool_infos *p;
for (int i=0; i<num_pools+1; i++) {
p = &pools[i];
p->donation = 0;
if (p->algo == -1) p->algo = (int) opt_algo;
if (p->max_diff == -1.) p->max_diff = opt_max_diff;
if (p->max_rate == -1.) p->max_rate = opt_max_rate;
Expand Down

0 comments on commit 839c32f

Please sign in to comment.