https://github.com/Satergo/stratum4ergo
Mining pool library for Ergo. Currently only supports solo-mining.
https://github.com/Satergo/stratum4ergo
Last synced: 7 months ago
JSON representation
Mining pool library for Ergo. Currently only supports solo-mining.
- Host: GitHub
- URL: https://github.com/Satergo/stratum4ergo
- Owner: Satergo
- Created: 2022-10-20T23:26:36.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-02T22:27:52.000Z (about 2 years ago)
- Last Synced: 2023-11-03T22:33:51.954Z (about 2 years ago)
- Language: Java
- Size: 81.1 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ergo - Stratum4Ergo
README
# stratum4ergo
Uses Java 17. The CLI main class is `com.satergo.stratum4ergo.CLI`. `./gradlew run` to test run using the CLI.
CLI configuration can be changed in [cli.properties](cli.properties).
The wallet payout address is specified in the configuration of your node, like this:
```hocon
ergo {
node {
mining = true
useExternalMiner = true
// the hex encoding of the content of your address, can be obtained using the node API endpoint /utils/addressToRaw
miningPubKeyHex = ""
}
}
```
The node will need to have its wallet initialized.
## Todo
- Write an actual example
- Disconnecting inactive peer
- Maybe support multiple client connections, authorization, banning
## Java API usage
```java
ErgoStratumServer server = new ErgoStratumServer(options);
server.startListening(4444);
```