hello
patrike,
I have a question about C# API, in the recent betas you've changed the initializer for PredefinedPool class
now it is declared as
PredefinedPoolProvider(AwesomeMiner.Infrastructure.Intelligence.OnlineServiceType, string, AwesomeMiner.Infrastructure.Mining.Pools.MiningRegion)
can you please describe what MiningRegions are available?
I've tried to guess but didn't succeed.
thank you.
Depends on your pool. You can find the regions at the pools or in awesomeminer options in profit switching section.
I appreciate your desire to help, but I'm sure you didn't understand what I'm asking. I use Nicehash EU North server in my C# script. have tried every possible name that could be used. using NicehashRegion.EU results in incompatible type assignment warning.
also, script editor complains that AwesomeMiner.Infrastructure.Mining assembly is missing, so type MiningRegion is undefined.
hope that's enough details to find the issue. patiently waiting for a fixed build,
@patrike. thanks again.
This specific class has not changed in about two years. The available MiningRegions for Nicehash did however change a few months ago, when they introduced new regions (where the MiningRegion can be one of: USAWest, USAEast, EuropeWest,EuropeNorth) like MiningRegion.USAWest.
Can you share some context how you use it and in what way it changed/broke in the latest development release? You can send the details via PM if you want. Thanks!
hello
patrikethe latest working version is 8.4.6, since then my script is broken.
the code is
using AwesomeMiner.Components.ProfitSwitching.Pools;
using AwesomeMiner.Infrastructure.Mining.Pools;
public class ActionScript
{
private ContextProvider Context = ScriptManager.Context;
public bool Execute(List<IMinerBase> list)
{
// Specify duration for how long the changes should be used
const int DurationMinutes = 200;
// Pool configuration
SwitchingProfile swProfile = new SwitchingProfile();
swProfile.EnabledPools = OnlineServiceType.NicehashNew;
swProfile.PoolProviderList.Clear();
swProfile.PoolProviderList.Add(new PredefinedPoolProvider(OnlineServiceType.NicehashNew, "wallet", MiningRegion.EuropeNorth));
Context.ProfitSwitcher.SetTemporaryProfitProfileSettings(list, DurationMinutes, swProfile);
return true;
}
}
the error is
(2,35): error CS0234: Имя типа или пространства имен "Mining" отсутствует в пространстве имен "AwesomeMiner.Infrastructure" (пропущена ссылка на сборку?)
an english translation for your convenience -
namespace Mining is missing from namespace AwesomeMiner.Infrastructure (missing (skipped) assembly link)?