forked from oliverw/miningcore
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/xiaolin1579/miningcore into dev
- Loading branch information
Showing
403 changed files
with
63,445 additions
and
9,297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
}] | ||
} |
Oops, something went wrong.