Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 803 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 803 Bytes

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.

The wallet payout address is specified in the configuration of your node, like this:

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

ErgoStratumServer server = new ErgoStratumServer(options);
server.startListening(4444);