Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Jun 13, 2024
2 parents 2234546 + c3d6ae6 commit c49bea4
Show file tree
Hide file tree
Showing 403 changed files with 63,445 additions and 9,297 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0-jammy as BUILDER
WORKDIR /app
RUN apt-get update && \
apt-get -y install \
cmake build-essential libssl-dev \
pkg-config libboost-all-dev \
libsodium-dev libzmq5 libzmq3-dev libgmp-dev

apt-get -y install cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5n libzmq3-dev golang-go libgmp-dev
COPY . .

WORKDIR /app/src/Miningcore
Expand Down
37 changes: 18 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@

Commercial support directly by the maintainer is available through [miningcore.pro](https://store.miningcore.pro).

For general questions visit the [Discussions Area](https://github.com/oliverw/miningcore/discussions).
For general questions visit the [Discussions Area](https://github.com/blackmennewstyle/miningcore/discussions).

## Contributions

Code contributions are very welcome and should be submitted as standard [pull requests](https://docs.github.com/en/pull-requests) (PR) based on the [`dev` branch](https://github.com/oliverw/miningcore/tree/dev).
Code contributions are very welcome and should be submitted as standard [pull requests](https://docs.github.com/en/pull-requests) (PR) based on the [`dev` branch](https://github.com/blackmennewstyle/miningcore/tree/dev).

## Building on Debian/Ubuntu

```console
git clone https://github.com/oliverw/miningcore
git clone https://github.com/blackmennewstyle/miningcore
cd miningcore
```

Expand All @@ -55,7 +55,7 @@ or
Download and install the [.NET 6 SDK](https://dotnet.microsoft.com/download/dotnet/6.0)

```dosbatch
git clone https://github.com/oliverw/miningcore
git clone https://github.com/blackmennewstyle/miningcore
cd miningcore
build-windows.bat
```
Expand All @@ -69,7 +69,7 @@ build-windows.bat
In case you don't want to install any dependencies then you can build the app using the official Microsoft .NET SDK Docker image.

```console
git clone https://github.com/oliverw/miningcore
git clone https://github.com/blackmennewstyle/miningcore
cd miningcore
```
Then build using Docker:
Expand Down Expand Up @@ -125,7 +125,7 @@ docker system prune -af

### Production OS

Windows is **not** a supported production environment. Only Linux is. Please do not file issues related to running a pool on Windows. Windows topics should be posted under [discussions](https://github.com/oliverw/miningcore/discussions).
Windows is **not** a supported production environment. Only Linux is. Please do not file issues related to running a pool on Windows. Windows topics should be posted under [discussions](https://github.com/blackmennewstyle/miningcore/discussions).

Running and developing Miningcore on Windows is of course supported.

Expand Down Expand Up @@ -187,7 +187,7 @@ Miningcore -c config.json

## Supported Currencies

Refer to [this file](https://github.com/oliverw/miningcore/blob/master/src/Miningcore/coins.json) for a complete list.
Refer to [this file](https://github.com/blackmennewstyle/miningcore/blob/master/src/Miningcore/coins.json) for a complete list.

## Caveats

Expand Down Expand Up @@ -221,15 +221,14 @@ Once again, do not run a production pool on Windows! This is not a supported con

## Donations

To support this project you can become a [sponsor](https://github.com/sponsors/oliverw) or send a donation to the following accounts:

* ETH: `miningcore.eth (ENS Address)`
* BTC: `miningcore.eth (ENS Address)`
* LTC: `miningcore.eth (ENS Address)`
* DOGE: `DGDuKRhBewGP1kbUz4hszNd2p6dDzWYy9Q`
* ETC: `0xF8cCE9CE143C68d3d4A7e6bf47006f21Cfcf93c0`
* DASH: `XqpBAV9QCaoLnz42uF5frSSfrJTrqHoxjp`
* ZEC: `t1YHZHz2DGVMJiggD2P4fBQ2TAPgtLSUwZ7`
* BTG: `GQb77ZuMCyJGZFyxpzqNfm7GB1rQreP4n6`
* ERGO: `9foYU8JkoqWBSDA3ba8VHfduPXV2NaVNPPAFkdYoR9t9cPQGMv4`
* XMR: `46S2AEwYmD9fnmZkxCpXf1T3U3DyEq3Ekb8Lg9kgUMGABn9Fp9q5nE2fBcXebrjrXfZHy5uC5HfLE6X4WLtSm35wUr9Mh46`
To support this project you can become a [sponsor]( https://github.com/sponsors//blackmennewstyle ) or send a donation to the following accounts:

* ETH: `0xbC059e88A4dD11c2E882Fc6B83F8Ec12E4CCCFad`
* BTC: `16xvkGfG9nrJSKKo5nGWphP8w4hr2ZzVuw`
* LTC: `LLs76baYT7iMqQhizxtBC96Cy48iX3Eh1p`
* DOGE: `DFuvDSFh4N3SiXGDnye2Vbc8kqvMHbyQE1`
* KAS: `kaspa:qpmf0wyu7c5z4l82ax9cfc5ughwk2f9lgu8uckkqrrpjqkxuk7yrga5nntvgn`
* CCX: `ccx7S4B3gBeH1SGWCfqZp3NM7Vavg7H3S8ovJn8fU4bwC4vU7ChWfHtbNzifhrpbJ74bMDxj4KZFTcznTfsucCEg1Kgv7zbNgs`
* FIRO: `a5AsoTSkfPHQ3SUmR6binG1XW7oQQoFNU1`
* ERGO: `9gYyuZzaSw3TiCtUkSRuS3XVDUv41EFs3dtNCFGqiEwHqpb7gkF`
* XMR: `483zaHtMRfM7rw1dXgebhWaRR8QLgAF6w4BomAV319FVVHfdbYTLVuBRc4pQgRAnRpfy6CXvvwngK4Lo3mRKE29RRx3Jb5c`
2 changes: 1 addition & 1 deletion build-debian-11.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rm packages-microsoft-prod.deb

# install dev-dependencies
sudo apt-get update; \
sudo sudo apt-get -y install dotnet-sdk-6.0 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5 libgmp-dev
sudo apt-get -y install dotnet-sdk-6.0 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5-dev libgmp-dev

(cd src/Miningcore && \
BUILDIR=${1:-../../build} && \
Expand Down
19 changes: 19 additions & 0 deletions build-debian-12.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# install install-dependencies
sudo apt-get update; \
sudo apt-get -y install wget

# add dotnet repo
sudo wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

# install dev-dependencies
sudo apt-get update; \
sudo apt-get -y install dotnet-sdk-6.0 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5-dev libgmp-dev

(cd src/Miningcore && \
BUILDIR=${1:-../../build} && \
echo "Building into $BUILDIR" && \
dotnet publish -c Release --framework net6.0 -o $BUILDIR)
2 changes: 1 addition & 1 deletion build-ubuntu-20.04.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rm packages-microsoft-prod.deb

# install dev-dependencies
sudo apt-get update; \
sudo sudo apt-get -y install dotnet-sdk-6.0 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5 libgmp-dev
sudo apt-get -y install dotnet-sdk-6.0 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5-dev libgmp-dev

(cd src/Miningcore && \
BUILDIR=${1:-../../build} && \
Expand Down
2 changes: 1 addition & 1 deletion build-ubuntu-21.04.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rm packages-microsoft-prod.deb

# install dev-dependencies
sudo apt-get update; \
sudo sudo apt-get -y install dotnet-sdk-6.0 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5 libgmp-dev
sudo apt-get -y install dotnet-sdk-6.0 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5-dev libgmp-dev

(cd src/Miningcore && \
BUILDIR=${1:-../../build} && \
Expand Down
7 changes: 1 addition & 6 deletions build-ubuntu-22.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
sudo apt-get update; \
sudo apt-get -y install wget

# add dotnet repo
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

# install dev-dependencies
sudo apt-get update; \
sudo sudo apt-get -y install dotnet-sdk-6.0 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5 libgmp-dev
sudo apt-get -y install dotnet6 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5-dev libgmp-dev

(cd src/Miningcore && \
BUILDIR=${1:-../../build} && \
Expand Down
6 changes: 3 additions & 3 deletions build-windows.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
cd src\Miningcore
dotnet publish -c Release --framework net6.0 -o ../../build
@echo off
cd src\Miningcore
dotnet publish -c Release --framework net6.0 -o ../../build
135 changes: 135 additions & 0 deletions examples/alephium_pool.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"logging": {
"level": "info",
"enableConsoleLog": true,
"enableConsoleColors": true,
"logFile": "",
"apiLogFile": "",
"logBaseDirectory": "",
"perPoolLogFile": false
},
"banning": {
"manager": "Integrated",
"banOnJunkReceive": true,
"banOnInvalidShares": false
},
"notifications": {
"enabled": false,
"email": {
"host": "smtp.example.com",
"port": 587,
"user": "user",
"password": "password",
"fromAddress": "info@yourpool.org",
"fromName": "support"
},
"admin": {
"enabled": false,
"emailAddress": "user@example.com",
"notifyBlockFound": true
}
},
"persistence": {
"postgres": {
"host": "127.0.0.1",
"port": 5432,
"user": "miningcore",
"password": "password",
"database": "miningcore"
}
},
"paymentProcessing": {
"enabled": true,
"interval": 600,
"shareRecoveryFile": "recovered-shares.txt"
},
"api": {
"enabled": true,
"listenAddress": "*",
"port": 4000,
"metricsIpWhitelist": [],
"rateLimiting": {
"disabled": true,
"rules": [
{
"Endpoint": "*",
"Period": "1s",
"Limit": 5
}
],
"ipWhitelist": [
""
]
}
},
"pools": [{
"id": "alph1",
"enabled": true,
"coin": "alephium",
"address": "aFkp9i2yxNyRW17uX4XLDStnPoguwJ6tuL",
"rewardRecipients": [
{
"type": "op",
"address": "aFkp9i2yxNyRW17uX4XLDStnPoguwJ6tuL",
"percentage": 1
}
],
"clientConnectionTimeout": 600,
"socketJobMessageBufferSize": 16384,
"banning": {
"enabled": true,
"time": 600,
"invalidPercent": 50,
"checkThreshold": 50
},
"ports": {
"3094": {
"listenAddress": "0.0.0.0",
"difficulty": 4,
"varDiff": {
"minDiff": 2,
"maxDiff": null,
"targetTime": 15,
"retargetTime": 90,
"variancePercent": 100,
"maxDelta": 512
}
},
"3095": {
"listenAddress": "0.0.0.0",
"difficulty": 4,
"tls": true,
"tlsPfxFile": "<Your directory for the pfx file>",
"tlsPfxPassword": "password",
"varDiff": {
"minDiff": 2,
"maxDiff": null,
"targetTime": 15,
"retargetTime": 90,
"variancePercent": 100,
"maxDelta": 512
}
}
},
"daemons": [
{
"host": "127.0.0.1",
"port": 12973,
"user": null,
"password": null,
"apiKey": "<The Alephium Node's API key in clear-text - not the hash>",
"minerApiPort": 10973
}
],
"paymentProcessing": {
"enabled": true,
"walletName": "<The Alephium Node's wallet which owns the pool address>",
"walletPassword": "<The Alephium Node's wallet password which owns the pool address>",
"minimumPayment": 1,
"payoutScheme": "PPLNS",
"payoutSchemeConfig": {
"factor": 0.5
}
}
}]
}
Loading

0 comments on commit c49bea4

Please sign in to comment.