diff --git a/ccminer.cpp b/ccminer.cpp index bfb2155..f2e1f0d 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -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++; @@ -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; diff --git a/compat/ccminer-config.h b/compat/ccminer-config.h index 507d84a..adc188e 100644 --- a/compat/ccminer-config.h +++ b/compat/ccminer-config.h @@ -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 diff --git a/configure.ac b/configure.ac index 4ce12be..c8f8342 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/pools.cpp b/pools.cpp index 557c158..4854f98 100644 --- a/pools.cpp +++ b/pools.cpp @@ -171,6 +171,7 @@ void pool_init_defaults() struct pool_infos *p; for (int i=0; idonation = 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;