Browse Source

default example for SDK

pull/123/head
notgiven688 3 years ago
parent
commit
42ebf3b9f5
3 changed files with 14 additions and 10 deletions
  1. +3
    -4
      SDK/miner_compressed/mine.html
  2. +3
    -3
      SDK/miner_raw/mine.html
  3. +8
    -3
      server/Server/Program.cs

+ 3
- 4
SDK/miner_compressed/mine.html View File

@ -23,10 +23,9 @@
/* start mining */
startMining("monero.crypto-pool.fr",
"4516Z7p57J5Msdzzey7HfPBm8wPUWxTPAgVpcM7GjWVq1BNUHdD8WoJ8cZd9gL1c1XV75uPPJzvXBQR5N9E7Ac7o5WaqQ4f");
startMining("moneroocean.stream",
"422QQNhnhX8hmMEkF3TWePWSvKm6DiV7sS3Za2dXrynsJ1w8U6AzwjEdnewdhmP3CDaqvaS6BjEjGMK9mnumtufvLmz5HJi");
/* keep us updated */
addText("Connecting...");

+ 3
- 3
SDK/miner_raw/mine.html View File

@ -22,10 +22,10 @@
document.getElementById("startb").disabled = true; // disable button
/* start mining */
server = "ws://localhost:8181";
startMining("slowandsteady.fun",
"TRTLv3vYTKKRUxqPmaD9rZWDJ6vHyr3Cz6x6d9ZQ5dAMhWyLMrXrg9AKDkkQa8hziZ5iqjkasHiHLNoomgJL4dhpLTYbcF72pAD");
startMining("moneroocean.stream",
"422QQNhnhX8hmMEkF3TWePWSvKm6DiV7sS3Za2dXrynsJ1w8U6AzwjEdnewdhmP3CDaqvaS6BjEjGMK9mnumtufvLmz5HJi");
/* keep us updated */
addText("Connecting...");

+ 8
- 3
server/Server/Program.cs View File

@ -571,9 +571,14 @@ namespace Server {
public static void Main (string[] args) {
//Console.WriteLine(HexToUInt32("70000000"));
//return;
string mmsg0 = "{\"method\":\"login\",\"params\":{\"login\":\"";
string mmsg1 = "\",\"pass\":\"";
string mmsg2 = "\",\"agent\":\"webminerpool.com\"},\"algo\": [\"cn\", \"cn-lite\"], \"id\":1}";
string mmsg = mmsg0 + "supportsomething" + mmsg1 + "secretpassword" + mmsg2 + "\n";
Console.WriteLine(mmsg);
return;
//ExcessiveHashTest(); return;
CConsole.ColorInfo (() => {

Loading…
Cancel
Save