Skip to content

Commit 7e61237

Browse files
committed
Bump to 2501.
Signed-off-by: Pttn <28868425+Pttn@users.noreply.github.com>
1 parent bee2ac9 commit 7e61237

File tree

6 files changed

+24
-34
lines changed

6 files changed

+24
-34
lines changed

GBTClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "Stella.hpp"
55
#include "main.hpp"
66

7-
const std::string cbMsg("/rM0.94/");
7+
const std::string cbMsg("/rM51/");
88
static std::vector<uint8_t> coinbaseGen(const std::vector<uint8_t> &scriptPubKey, const uint32_t height, const uint64_t coinbasevalue, const std::vector<uint8_t> &dwc) {
99
std::vector<uint8_t> coinbase;
1010
// Version (01000000)

GetDependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
deps=rieMiner0.94Deps
5+
deps=rieMiner2501Deps
66
if test -f "${deps}.tar.gz" || test -d "${deps}" ; then
77
echo "Dependencies already downloaded, delete the ${deps}.tar.gz archive and ${deps} folder if you want to download it again."
88
exit

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VER = 0.94ES
1+
VER = 2501
22
CXX = g++
33
M4 = m4
44
AS = as
@@ -91,7 +91,7 @@ rieMinerWin64: main.o Stella.o StratumClient.o GBTClient.o Client.o API.o tools.
9191
$(CXX) $(CFLAGS) -o rieMiner $^ $(LIBS)
9292

9393
main.o: main.cpp main.hpp Stella.hpp Client.hpp tools.hpp
94-
$(CXX) $(CFLAGS) -c -o $@ -DversionShort=\"$(VER)\" -DversionString=\"rieMiner$(VER)\" main.cpp
94+
$(CXX) $(CFLAGS) -c -o $@ -DversionShort=\"$(VER)\" -DversionString=\"rieMiner\ $(VER)\" main.cpp
9595

9696
Stella.o: Stella.cpp Stella.hpp
9797
$(CXX) $(CFLAGS) -c -o $@ Stella.cpp

README.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,19 @@ This README is intended for advanced users and will mainly only describe the dif
88

99
Happy Mining or Good Luck on finding a new record!
1010

11-
## Minimum requirements
11+
## Recommended Requirements
1212

13-
* Windows 10 or recent enough Linux;
14-
* Virtually any usual 32 or 64 bits CPU (should work for any x86 since Pentium Pro and recent ARMs);
15-
* 512 MiB of RAM (the prime table limit must be manually set at a lower value in the options);
16-
* We only provide binaries for Windows and Linux x64. In the other cases, you must have access to an appropriate build environment and compile yourself the code.
13+
* Windows 11 x64 (latest version) or Debian 12 x64
14+
* AMD Zen 5 Processor (Ryzen 9000) or better, with efficient AVX512 implementation and 8 cores or more
15+
* 16 GiB of RAM or more
1716

18-
Recommended:
17+
We only provide binaries for Windows x64 and Linux x64 + Arm64. In other situations, you are on your own, and must have access to an appropriate build environment and compile yourself the code, as well as find out yourself which modifications might be required for an older version.
1918

20-
* Windows 11 (latest version) or Debian 11;
21-
* Recent x64 with AVX2 (Intel Haswell, AMD Zen2, or better), with 8 cores or more;
22-
* 8 GiB (16 if using more than 8 cores) of RAM or more.
19+
Memory usage can be reduced using the PrimeTableLimit option.
2320

2421
## Compile this program
2522

26-
rieMiner should be compilable on recent Linuxes. Building on another system is not supported, and Debian 11 Amd64 is our reference OS. It should be used for cross compiling in order to generate binaries for other systems, that can be distributed. If you don't have Debian 11, you can install it in a virtual machine, as Dual Boot, or in a spare machine.
23+
rieMiner should be compilable on recent Linuxes. Building on another system is not supported, and Debian 12 Amd64 is our reference OS. It should be used for cross compiling in order to generate binaries for other systems, that can be distributed. If you do not have Debian 12, you can install it in a virtual machine, as Dual Boot, or in a spare machine.
2724

2825
### Native building
2926

@@ -32,7 +29,6 @@ Here is how to build rieMiner to run it directly on the same computer. Libraries
3229
You will need g++, as, m4, make, and the following dependencies:
3330

3431
* [GMP](https://gmplib.org/)
35-
* [libSSL](https://www.openssl.org/)
3632
* [cURL](https://curl.haxx.se/)
3733
* [NLohmann Json](https://json.nlohmann.me/)
3834

@@ -44,19 +40,19 @@ apt install g++ make m4 git libgmp-dev libssl-dev libcurl4-openssl-dev nlohmann-
4440
And on an Arch based distribution:
4541

4642
```bash
47-
pacman -S gcc make m4 git gmp openssl curl nlohmann-json
43+
pacman -S gcc make m4 git gmp curl nlohmann-json
4844
```
4945

5046
For Apple Silicon:
5147

5248
```bash
53-
brew install gcc make m4 git gmp openssl@1.1 curl nlohmann-json
49+
brew install gcc make m4 git gmp curl nlohmann-json
5450
```
5551

5652
Then, download the source files, go/`cd` to the directory:
5753

5854
```bash
59-
git clone https://github.com/Pttn/rieMiner.git
55+
git clone https://github.com/RiecoinTeam/rieMiner.git
6056
cd rieMiner
6157
```
6258

@@ -75,12 +71,12 @@ For other Linux, executing equivalent commands (using `pacman` instead of `apt`,
7571

7672
### Static/Cross Compiling
7773

78-
To generage binaries that can be distributed, cross compiling is done on Debian 11 Amd64. This statically links the libraries and the compiler does not optimize for a particular processor. Here is how you can do it yourself.
74+
To generate binaries that can be distributed, cross compiling is done on Debian 12 Amd64. This statically links the libraries and the compiler does not optimize for a particular processor. Here is how you can do it yourself.
7975

80-
Firstly, make sure that you are running Debian 11 x64. You may need to install some basic tools,
76+
Firstly, make sure that you are running Debian 12 x64. You may need to install some basic tools,
8177

8278
```bash
83-
apt install make m4 git wget lzip
79+
apt install make m4 git wget
8480
```
8581

8682
You will also need appropriate compilers depending on the target system, use this table to find out what to install.
@@ -92,25 +88,23 @@ You will also need appropriate compilers depending on the target system, use thi
9288
| Linux Arm64 | `g++-aarch64-linux-gnu` |
9389
| Android Arm64 | not in repository, see below |
9490

95-
9691
Now, get the rieMiner's source code.
9792

9893
```bash
99-
git clone https://github.com/Pttn/rieMiner.git
94+
git clone https://github.com/RiecoinTeam/rieMiner.git
10095
cd rieMiner
10196
```
10297

103-
A script that retrieves the dependencies' source codes from Riecoin.dev and compiles them is provided. Run the script with
98+
A script that retrieves the dependencies' source codes from Riecoin.xyz and compiles them is provided. Run the script with
10499

105100
```bash
106101
sh GetDependencies.sh
107102
```
108103

109-
A folder named `rieMiner0.93aDeps` must have appeared. We assume that you are in it when starting a subsection below.
110-
104+
A folder named `rieMiner2501Deps` must have appeared. We assume that you are in it when starting a subsection below.
111105

112106
```bash
113-
cd rieMiner0.94Deps
107+
cd rieMiner2501Deps
114108
```
115109

116110
If you are going to compile for several systems, doing `make clean`s in the rieMiner's directory will be very useful between builds (it will not delete rieMiner binaries). If you already built the dependencies once, you can usually reuse existing `incs` and `libs` folders and skip several steps, though the dependencies may be updated once a while on Riecoin.dev.
@@ -279,10 +273,6 @@ This work is released under the MIT license, except the modified GMP code which
279273

280274
[More Contributors](https://github.com/Pttn/rieMiner/graphs/contributors)
281275

282-
### Versioning
283-
284-
The version naming scheme is 0.9, 0.99, 0.999 and so on for major versions, analogous to 1.0, 2.0, 3.0,.... The first non 9 decimal digit is minor, etc. For example, the version 0.9925a can be thought as 2.2.5a. A perfect bug-free software will be version 1. No precise criteria have been decided about incrementing major or minor versions for now.
285-
286276
## Contributing
287277

288278
Feel free to do a pull request or open an issue, and I will review it. I am open for adding new features, but I also wish to keep this project minimalist. Any useful contribution will be welcomed.

StratumClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "Client.hpp"
66
#include "Stella.hpp"
77

8-
constexpr const char* userAgent("rieMiner/0.94");
8+
constexpr const char* userAgent("rieMiner/2501");
99

1010
static std::array<uint8_t, 32> calculateMerkleRootStratum(const std::vector<std::array<uint8_t, 32>> &merkleBranches) {
1111
std::array<uint8_t, 32> merkleRoot{};

main.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
#include "Stella.hpp"
1818

1919
#ifndef versionShort
20-
#define versionShort "0.9x"
20+
#define versionShort "2xxx"
2121
#endif
2222
#ifndef versionString
23-
#define versionString "rieMiner 0.9x"
23+
#define versionString "rieMiner 2xxx"
2424
#endif
2525

2626
static inline std::string timeNowStr() {

0 commit comments

Comments
 (0)