Skip to content

Commit e0a9b03

Browse files
authored
Merge pull request #56 from BitPoolMining/Dev
Release 1.0.1.26 Added Lycl support for VTC
2 parents 518cf9b + 99d3f36 commit e0a9b03

File tree

452 files changed

+378
-11168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+378
-11168
lines changed

BitPoolMiner/BitPoolMiner.csproj

Lines changed: 180 additions & 439 deletions
Large diffs are not rendered by default.
447 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Global TerminalColors = "false"
22
ExtraNonce = "true">
33
<Connection Url = "stratum+tcp://us-east.vtc.bitpoolmining.com:3096"
4-
Username = "user"
5-
Password = "xxxxuserxxxx">
4+
Username = "xxxxuserxxxx"
5+
Password = "x"
6+
Algorithm = "Lyra2REv3">
67
<Device0 DeviceIndex = "0" BinaryFormat = "amdcl2" AsmProgram = "gfx8" WorkSize = "1048576">
447 KB
Binary file not shown.

BitPoolMiner/Miners/LyclMiner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void CopyLcylConfigFile()
7979

8080
// Replace address with correct address
8181
string text = File.ReadAllText(currentConfig);
82-
text = text.Replace("xxxxuserxxxx", "new value");
82+
text = text.Replace("xxxxuserxxxx", string.Format("{0}.BPM", Address));
8383
File.WriteAllText(currentConfig, text);
8484
}
8585

BitPoolMiner/Miners/Miner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public abstract class Miner
1919
private const int MinerRestartDelay = 2000; // 2 second delay
2020

2121
protected BPMProcess MinerProcess;
22-
public string Address { get; private set; }
22+
public string Address { get; set; }
2323
public string MinerName { get; private set; }
2424
public string MinerWorkingDirectory { get; protected set; }
2525
public string MinerArguments { get; set; }

BitPoolMiner/ViewModels/MainWindowViewModel/MainWindowViewModel.Mining.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,20 @@ private void SetupLocalMiners()
138138
// Call API and retrieve a list of miner configurations used to start mining
139139
List<MinerConfigResponse> minerConfigResponseList = GetMinerConfigurations();
140140

141+
// Build the Request to call the API and retrieve the miner config strings
142+
List<AccountWallet> accountWalletList = new List<AccountWallet>();
143+
144+
// Get configurations needed for building API request from Application settings
145+
accountWalletList = (List<AccountWallet>)Application.Current.Properties["AccountWalletList"];
146+
141147
// Iterate through returned responses from API and initialize miners
142148
foreach (MinerConfigResponse minerConfigResponse in minerConfigResponseList)
143149
{
144150
// Create miner session
145151
Miner miner = MinerFactory.CreateMiner(minerConfigResponse.MinerBaseType, minerConfigResponse.HardwareType);
146152
miner.CoinType = minerConfigResponse.CoinSelectedForMining;
147153
miner.MinerArguments = minerConfigResponse.MinerConfigString;
154+
miner.Address = accountWalletList.Find(x => x.CoinType == miner.CoinType).WalletAddress;
148155
MiningSession.AddMiner(miner);
149156
ShowInformation(string.Format("Mining started {0} {1}", minerConfigResponse.MinerBaseType, minerConfigResponse.MinerConfigString));
150157
}

BitPoolMiner/publish/Application Files/BitPoolMiner_1_0_1_22/BitPoolMiner.exe.manifest

Lines changed: 0 additions & 1292 deletions
This file was deleted.
-20.9 MB
Binary file not shown.

BitPoolMiner/publish/Application Files/BitPoolMiner_1_0_1_22/MinerApps/CryptoDredge_0.14.0/README.txt.deploy

Lines changed: 0 additions & 207 deletions
This file was deleted.

0 commit comments

Comments
 (0)