Pages:
Author

Topic: Yiimp mining 2 different coins with the same algo (Read 549 times)

full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
More info.

Some pool like blockmaster.co have changed Yiimp to support new features, like the mc= function set what coin has to be mined.
This code is NOT into Yiimp (original and open source) here: https://github.com/tpruvot/yiimp

It has to be implemented.

As a conclusion, what I want to do is not possible without modification of Yiimp.
That's where I am right now.

Shame on the trolls. You know who you are, specially the "Legendary" who insulted me, you do not deserve your status.
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
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 !



I know all of that.
But I want to mine 2 different coins who are using sha256 as algo... I can mine only one.
And I am not talking about 4 years old coins that are doing solo mining. I am talking about clones of latest bitcoin core, without solo, and with stratum mining only.

When I look into the code, I do not see the necessary code to follow up on what coin the address is from in stratum which is what is receiving the command line parameters.

I do mine sha256 shared, but the reception address will not match the coin I am mining, I mine the wrong coin.

Yiimp and stratum seems to only care about the algorithm, not the coin.

full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
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.



If I ask the question here it is because I don't know the answer, you can say to same about anyone who is asking questions. "you are incompetent because you don't know the answer". That's supposed to be a smart answer.
Everybody has to learn.
If you don't know the answer no need to reply.
If you know the answer, show how you are smarter than I and explain exactly how the MC= parameter is sent from the cpuminer to the stratum, then from the stratum to the block notify to the right wallet.
This code is non existant in Yiimp. So actually only shared mining is supported. That's my problem.

I want to understand, and if you think that I am incompetent because I don't have the answer, then explain me, and show me your knowledge.
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
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.

Thanks a LOT for a more detailed answer. I could not figure out anything from the answers before, I will investigate in that direction!!!

+++ merit for this answer
legendary
Activity: 1470
Merit: 1114
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.

legendary
Activity: 3136
Merit: 3213
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 !

legendary
Activity: 1848
Merit: 1166
My AR-15 ID's itself as a toaster. Want breakfast?
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.
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
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
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
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.
legendary
Activity: 1848
Merit: 1166
My AR-15 ID's itself as a toaster. Want breakfast?
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....
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
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.
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp

@joblo

Looks like he dont know you !  Cheesy



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.
legendary
Activity: 2294
Merit: 1182
Now the money is free, and so the people will be
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
legendary
Activity: 1470
Merit: 1114

@joblo

Looks like he dont know you !  Cheesy



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.

legendary
Activity: 3136
Merit: 3213

@joblo

Looks like he dont know you !  Cheesy

member
Activity: 531
Merit: 29
m= and mc= are pool options to be specified in password field. Your miner is not supposed to interpret or support those.
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
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...
legendary
Activity: 1470
Merit: 1114
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?
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
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.
legendary
Activity: 1470
Merit: 1114
A closed mind can't be helped.
Pages:
Jump to: