Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with overriding some embedded config options. #386

Closed
PsychoSec2 opened this issue May 17, 2022 · 2 comments
Closed

Problem with overriding some embedded config options. #386

PsychoSec2 opened this issue May 17, 2022 · 2 comments

Comments

@PsychoSec2
Copy link

So I'm compiling xmrigCC with an embedded config, it works as expected. However, I have a few miners that require a couple of config options which differ from the embedded config. The way I that would expect to do this is by: creating a config.json file which overrides only the options that I would like changed while keeping the other options that are within the embedded config running and in tact. I tried doing this and it did not work. So my question is how can I make this work? If xmrigCC dose not have this feature then it is something I think should be added.

@PsychoSec2
Copy link
Author

Nvm solved the issue by passing environmental variables to the options a wanted to change.

For example line 101 in CCClient.cpp:

94    std::string clientId;
95    if (m_base->config()->ccClient().workerId())
96    {
97    clientId = Env::expand(m_base->config()->ccClient().workerId());
98    }
99    else
100   {    
101   clientId = getenv("worker_id");
102   }

@Bendr0id
Copy link
Owner

Yes, that's the only working approach. There is currently no config merging Happening.

Regards,
Ben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants