Skip to content

Commit

Permalink
Merge pull request #5 from chrisdigity/hotfix/nodelist
Browse files Browse the repository at this point in the history
Fix nodelist download/update issue
  • Loading branch information
chrisdigity committed Apr 20, 2019
2 parents 38e0d5c + 3b37ae4 commit 718830d
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 3 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Mochimo Headless Windows Miner

Mochimo Project - Headless Windows Miner Development Repository

All contents of this respository are subject to the license terms and conditions associated with the Mochimo Cryptocurrency Engine.
Expand All @@ -15,3 +17,24 @@ The contents of this repository are copyright 2019 Adequate Systems, LLC. All R
Please read the license file in the package for additional restrictions.

Contact: support@mochimo.org

## Compilation Instructions
*Disclaimer: When downloading/installing the Cuda Toolkit, ensure:*
```
- compatibility with your Nvidia graphics card/s
- compatibility with you version of Visual Studio
- and also that the installation isn't going to overwrite your
existing driver for a driver that just is now incompatible
with your graphics card/s
```
*If you are a wizard who is 110% sure that your Visual Studio and Cuda Toolkit installation is properly installed on your system, skip to step 2.*
1. Download and install Visual Studio 2017 and a Cuda Toolkit IN THAT ORDER.
2. Open a Visual Studio Developer Command Prompt compatible with your system (x86/x64)
3. Clone the repository with command: `git clone https://github.com/mochimodev/winminer.git`
4. Navigate to your `winminer\winminer_v1\winminer` folder
5. Compile `mochimo-winminer.exe` with command: `nvcc -arch=sm_37 -o mochimo-winminer.exe winminer.cpp trigg.cu`
6. Move `mochimo-winminer.exe` binary to the `\winminer\binaries` folder
7. Navigate to your `winminer\winminer_v1\updatemonitor` folder
8. Compile `update-monitor.exe` with command: `cl /Feupdate-monitor.exe updatemonitor.cpp`
9. Move `update-monitor.exe` binary to the `\winminer\binaries` folder
10. Run the miner with your fingers crossed.
4 changes: 2 additions & 2 deletions binaries/_README.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MD5HASH for these executables are:

mochimo-winminer.exe 2a70e83e65c7bff2a7b358708e158699
update-monitor.exe 45ae0a58ed5c8ca94301147ed283ec99
mochimo-winminer.exe 0C597243E88E193983D59B6A112DDA81
update-monitor.exe B428A2022DCB322CADA1713DB72536ED

This software is offered with no warranty, and is subject to the terms and conditions of the license, which can be found here:
https://github.com/mochimodev/mochimo/blob/master/LICENSE.PDF
Expand Down
Binary file modified binaries/mochimo-winminer.exe
Binary file not shown.
Binary file modified binaries/update-monitor.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions winminer_v1/updatemonitor/updatemonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
*/

#include "winminer.h"
#include "util.cpp"
#include "rand.cpp"
#include "comms.cpp"
#include "crypto.cpp"

#pragma comment(lib, "Ws2_32.lib")

char *Addrfile = "maddr.dat";
char *Corefname = "fullnodes.lst";
Expand Down
5 changes: 5 additions & 0 deletions winminer_v1/updatemonitor/winminer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
*
*/

#ifndef WINMINERH
#define WINMINERH

#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -257,3 +260,5 @@ typedef struct {
#define RNDSEEDLEN 64

#include "prototypes.h"

#endif /* WINMINERH */
11 changes: 10 additions & 1 deletion winminer_v1/winminer/winminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@

#include "winminer.h"
#include <winhttp.h>
#include "util.cpp"
#include "rand.cpp"
#include "comms.cpp"
#include "crypto.cpp"
#include "miner.cpp"
#include "wots.cpp"
#include "trigg.cpp"

#pragma comment(lib, "winhttp.lib")
#pragma comment(lib, "Ws2_32.lib")

char *Addrfile = "maddr.dat";
char *Corefname = "fullnodes.lst";
Expand Down Expand Up @@ -235,7 +244,7 @@ int main(int argc, char **argv)
srand16(time(&stime));
srand2(stime, 0, 0);

printf("\nMochimo Windows Headless Miner version 1.4\n"
printf("\nMochimo Windows Headless Miner version 1.4.1\n"
"Mochimo Main Net v2.3 Original Release Date: 04/07/2019\n"
"Copyright (c) 2019 by Adequate Systems, LLC."
" All Rights Reserved.\n\n"
Expand Down
6 changes: 6 additions & 0 deletions winminer_v1/winminer/winminer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
*
*/

#ifndef WINMINERH
#define WINMINERH

#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -276,3 +279,6 @@ typedef struct {
#define RNDSEEDLEN 64

#include "prototypes.h"


#endif /* WINMINERH */

0 comments on commit 718830d

Please sign in to comment.