Bitcoin Forum
May 05, 2024, 12:13:00 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Yiimp mining 2 different coins with the same algo  (Read 513 times)
TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
August 29, 2019, 11:07:50 AM
 #1

I have a problem when mining with 2 coins using the same algo (sha256).

I specify the coin with c= but it is always the same coin that is chosen.

It seems that if you want to mine 2 different coins with the same algo, Yiimp is choosing the most profitable, or just the first in the list.

Should I duplicate the sha256 algo, rename it as if it is a different one to get the 2 coins having a separate accounting? Or am I missing something?

The pool is here: http://ncpool.net

1714911180
Hero Member
*
Offline Offline

Posts: 1714911180

View Profile Personal Message (Offline)

Ignore
1714911180
Reply with quote  #2

1714911180
Report to moderator
1714911180
Hero Member
*
Offline Offline

Posts: 1714911180

View Profile Personal Message (Offline)

Ignore
1714911180
Reply with quote  #2

1714911180
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714911180
Hero Member
*
Offline Offline

Posts: 1714911180

View Profile Personal Message (Offline)

Ignore
1714911180
Reply with quote  #2

1714911180
Report to moderator
1714911180
Hero Member
*
Offline Offline

Posts: 1714911180

View Profile Personal Message (Offline)

Ignore
1714911180
Reply with quote  #2

1714911180
Report to moderator
MATHReX
Sr. Member
****
Offline Offline

Activity: 861
Merit: 281


View Profile
August 29, 2019, 02:03:28 PM
 #2

Are you using ASIC or GPUs to mine the said coins?
Can you provide more details as to which miner software you are using?
joblo
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
August 29, 2019, 03:36:54 PM
 #3


I specify the coin with c= but it is always the same coin that is chosen.


c= is the payout coin, you want mc=

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
August 29, 2019, 04:37:01 PM
Last edit: August 29, 2019, 05:42:22 PM by TheWolf666
 #4


I specify the coin with c= but it is always the same coin that is chosen.


c= is the payout coin, you want mc=

I am using cpu-multi (tpruvot) and there is nothing such as mc= option.

-a sha256 -o stratum+tcp://ncpool.net:3333 -u kxxxxxxxxxxxxxxxxxxxxxxxx -p c=KYF

For FRANC I should use

-a sha256 -o stratum+tcp://ncpool.net:3333 -u fxxxxxxxxxxxxxxxxxxxxxxxx -p c=FRANC

However cpuminer always get KYF shares.
To get it to mine FRANC I have to disable the KYF coin and then the mining goes to the right coin, however of course KYF is not mined anymore.
If I enable both in the Yiiimp backend, I only mine for KYF but with a FRANC address, I lose rewards.


joblo
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
August 29, 2019, 06:10:17 PM
 #5

A closed mind can't be helped.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
August 29, 2019, 08:20:16 PM
 #6

A closed mind can't be helped.


Is that your answer? Are you here to confuse people or to help them. I am a C++ developer there is no mention of a mc= option in the stratum source code.
What should I do to open my mind?

Any help is welcome.

joblo
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
August 29, 2019, 11:47:57 PM
 #7

A closed mind can't be helped.


Is that your answer? Are you here to confuse people or to help them. I am a C++ developer there is no mention of a mc= option in the stratum source code.
What should I do to open my mind?

Any help is welcome.

It's your own fault you're confused, your second post made no sense. In your first post
you said you're using c=. Don't. Use mc= instead. How difficult is that?

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
August 30, 2019, 05:00:51 AM
 #8

A closed mind can't be helped.


Is that your answer? Are you here to confuse people or to help them. I am a C++ developer there is no mention of a mc= option in the stratum source code.
What should I do to open my mind?

Any help is welcome.

It's your own fault you're confused, your second post made no sense. In your first post
you said you're using c=. Don't. Use mc= instead. How difficult is that?

Do you know cpuminer?

Code:
./cpuminer: unsupported non-option argument -- 'mc=FRANC'

This option does not exist. Elaborate please, or give a link to that option with cpuminer...

yrk1957
Member
**
Offline Offline

Activity: 529
Merit: 29


View Profile
August 30, 2019, 05:34:33 AM
 #9

m= and mc= are pool options to be specified in password field. Your miner is not supposed to interpret or support those.
Lafu
Legendary
*
Offline Offline

Activity: 2968
Merit: 3045



View Profile
August 30, 2019, 05:06:54 PM
 #10


@joblo

Looks like he dont know you !  Cheesy


joblo
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
August 30, 2019, 06:36:31 PM
 #11


There's a lot he doesn't know, like how to accept help when he asks for it.

It seems to be a common theme. The person trying to help ends up being
blamed and flamed.

It's pretty childish but it's fun to see if they ever figure out their own stupidity
or have to be spoon fed like a baby. We have the answer in this instance.

Any chance he'll come back and say I was right all along? Not likely.


AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
fr4nkthetank
Legendary
*
Offline Offline

Activity: 2294
Merit: 1182


Now the money is free, and so the people will be


View Profile
August 30, 2019, 06:41:20 PM
 #12

why argue over something so ridiculous.  YIIMP is an (correct me if im wrong) open source pool software anyone can use.  so your pool operator didnt simply copy pasta compile, he added options, like the option to mine a specific coin with the mc option.  if you get an incorrect command for your mining software thats because *you put it in the wrong place*
edit: poor joblo lol
TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
August 31, 2019, 06:25:28 AM
 #13


There's a lot he doesn't know, like how to accept help when he asks for it.

It seems to be a common theme. The person trying to help ends up being
blamed and flamed.

It's pretty childish but it's fun to see if they ever figure out their own stupidity
or have to be spoon fed like a baby. We have the answer in this instance.

Any chance he'll come back and say I was right all along? Not likely.


Usually when heated argument gets suddenly silent, that is the moment when person understood his stupidity.
Take the absence of the response as a good sign, today someone learned something Smiley


Stupidity? There is no mc argument in cpuminer, no mc argument is programmed in the stratum. What else. I stop talking because arguing with these people is non sense. I need answers.
Apparently these people do not have an answer.

How to have 2 coins mining with different address and using the same algo, right now, it is impossible without modifying the stratum in yiimp AND the mining software if it doesn't support such an option.
Insulting me is not going to fix the problem.

I will report any insult thrown at me. If you give an answer, give an explanation, not a line that has no meaning.

TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
August 31, 2019, 06:27:39 AM
 #14

why argue over something so ridiculous.  YIIMP is an (correct me if im wrong) open source pool software anyone can use.  so your pool operator didnt simply copy pasta compile, he added options, like the option to mine a specific coin with the mc option.  if you get an incorrect command for your mining software thats because *you put it in the wrong place*
edit: poor joblo lol

So the correct answer is that Yiimp cannot do that, you have to program it yourself. Thanks for saying something that is helpful.

JaredKaragen
Legendary
*
Offline Offline

Activity: 1848
Merit: 1165


My AR-15 ID's itself as a toaster. Want breakfast?


View Profile WWW
August 31, 2019, 06:29:29 AM
 #15

m= and mc= are pool options to be specified in password field. Your miner is not supposed to interpret or support those.

This is the relevant answer... for those who are interested.

To understand why yiimp picks one coin over another on the same algo, requires following the code, to see what sources and data it uses in each instance.   Compare, and understand its result.   There is no simple answer for this part of the OP's question.   Its been a big question for a long time, and it's complicated to accurately fully describe without writing out a flowchart of the code.

*edit*

mc= just allows you to manually select which coin you get served workunits for....

Link to my batch and script resources here.  

DO NOT TRUST YOBIT  -JK

Donations: 1Q8HjG8wMa3hgmDFbFHC9cADPLpm1xKHQM
TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
August 31, 2019, 06:33:32 AM
 #16

m= and mc= are pool options to be specified in password field. Your miner is not supposed to interpret or support those.

I know I have tested, this option is not supported by cpuminer.

no mc option should I report my answers?


https://rehmann.co/blog/cpuminer-help/

I have posted the cpuminer version, the command line I use, please guys, read the post before answering, if you don't know the answers, go somewhere else.

TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
August 31, 2019, 06:38:11 AM
 #17

m= and mc= are pool options to be specified in password field. Your miner is not supposed to interpret or support those.

This is the relevant answer... for those who are interested.

To understand why yiimp picks one coin over another on the same algo, requires following the code, to see what sources and data it uses in each instance.   Compare, and understand its result.   There is no simple answer for this part of the OP's question.   Its been a big question for a long time, and it's complicated to accurately fully describe without writing out a flowchart of the code.

*edit*

mc= just allows you to manually select which coin you get served workunits for....

This option does not exist in the stratum C core used with Yiimp


Code in user.cpp
Line 37: https://github.com/tpruvot/yiimp/blob/next/stratum/user.cpp


Code:

void db_add_user(YAAMP_DB *db, YAAMP_CLIENT *client)
{

db_clean_string(db, client->username);
db_clean_string(db, client->password);
db_clean_string(db, client->version);
db_clean_string(db, client->notify_id);
db_clean_string(db, client->worker);

        if (strlen(client->username)==0) return;

char symbol[16] = { 0 };
char *p = strstr(client->password, "c=");
if(!p) p = strstr(client->password, "s=");
if(p) strncpy(symbol, p+2, 15);
p = strchr(symbol, ',');
if(p) *p = '\0';



This code is where the password option is gathered by the stratum server. If I use mc= it does not get the information.
Maybe you guys are using another stratum version, which is supporting this option, I would like to know where the source code is.

Thanks

JaredKaragen
Legendary
*
Offline Offline

Activity: 1848
Merit: 1165


My AR-15 ID's itself as a toaster. Want breakfast?


View Profile WWW
August 31, 2019, 06:51:19 AM
Merited by TheWolf666 (3)
 #18

m= and mc= are pool options to be specified in password field. Your miner is not supposed to interpret or support those.

I know I have tested, this option is not supported by cpuminer.

no mc option should I report my answers?


https://rehmann.co/blog/cpuminer-help/

I have posted the cpuminer version, the command line I use, please guys, read the post before answering, if you don't know the answers, go somewhere else.

mc= is a option for yiimp;  not your miner; your miner is served workunits via stratum from the pool.

Check yiimp's documentation on how parameters are passed to it through the password input.  

You are not understanding yiimp fully.... I hope this example helps:

Username : 1gtxc.......    
Password  : c=BTC,mc=XRP,d=5.5

once you understand, my original answer will begin to make more sense.



In that https://github.com/tpruvot/yiimp/blob/next/stratum/user.cpp snippet;  you fail to understand it stores the whole password into the sql database; and any function can call and check the contents of it potentially... somewhere like the coin to mine selection portion of code....      yiimp is very complex....  

zpool uses zap=COIN not mc=COIN....   so in theory, you could yourself add a single function there in that specific set of code to set the correct variable for coin selection;  but you gotta also take into account all the portions of code that could set it as well after that initial call to take in the password and store the data in the SQL database.

Link to my batch and script resources here.  

DO NOT TRUST YOBIT  -JK

Donations: 1Q8HjG8wMa3hgmDFbFHC9cADPLpm1xKHQM
Lafu
Legendary
*
Offline Offline

Activity: 2968
Merit: 3045



View Profile
August 31, 2019, 10:35:13 AM
Merited by TheWolf666 (3)
 #19

So looks like maybe its your pool ?
Dont know but if so or you know the owner of the pool
there is something that helps with the setup an specify port for one of the coins !
The normal sha256 port is 3333 and you can setup another port for the same Algo like 3334 or something else that is free !
Scrypt use port 3433 !

You have to create a new stratum port like 3334 for it and exclude the shares and blocknotify to the 3333 port file with include !

If you want to know more write here or pm me !


joblo
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
August 31, 2019, 01:10:10 PM
Merited by TheWolf666 (3)
 #20

I will report any insult thrown at me. If you give an answer, give an explanation, not a line that has no meaning.

So let me summarize:

A supposed c++ developper installs pool software for a feature without verifying the feature is present, configured,
or knowing how to use it, asks for help to use the feature, completely misunderstands the instructions,
blames the responder, challenges his competence, then whines about being insulted.

It's your competence that's in question.


AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!