aquachain-proxy

command module
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

aquachain-proxy

Aquachain mining proxy with web-interface.

Proxy feature list:

  • Rigs availability monitoring
  • Keep track of accepts, rejects, blocks stats
  • Easy detection of sick rigs
  • Daemon failover list

Demo

Installation
  1. Compile (eg: 'make' or 'make all' for cross-compilation)
  2. Copy aquachain-proxy to /usr/local/bin/
  3. Copy aquaproxy.example.json to /etc/aquaproxy.json, edit the YOUR_ADDRESS_HERE field (see Configuration below)
  4. Copy docs/aquaproxy.service to /etc/systemd/system/
  5. Run 'systemctl enable aquaproxy' to start on boot
  6. Run 'systemctl start aquaproxy' to start now
  7. Optional: Customize a frontend just by creating a 'www' directory in the working directory. Copy it from the repository's 'www' directory.
Configuration

Configuration is self-describing, just copy config.example.json to config.json and specify endpoint URL and upstream URLs.

Or, use '-mkcfg' flag to create the file with defaults. (still need to change upstream)

Example upstream section
{
  "upstream": [
    {
      "pool": true,
      "name": "EuroHash.net",
      "url": "http://eth-eu.eurohash.net:8888/miner/0xb85150eb365e7df0941f0cf08235f987ba91506a/proxy",
      "timeout": "10s"
    },
    {
      "name": "backup-geth",
      "url": "http://127.0.0.1:8545",
      "timeout": "10s"
    }
  ]
}

In this example we specified a mining pool as main mining target and a local geth node as backup for solo.

Running

With no arguments, aquachain-proxy will look for a aquaproxy.json in the working directory, /etc/aquaproxy.json, and /opt/aqua/aquaproxy.json

./aquachain-proxy

Specify a config file with the -cfg flag

./aquachain-proxy -cfg /etc/aquaproxy.json

If you have a 'www' directory but still want to serve from embedded filesystem,

./aquachain-proxy -e -cfg /etc/aquaproxy.json
Mining software configuration
aquaminer-gpu -F http://x.x.x.x:8546/rig1 
aquaminer-gpu -F http://x.x.x.x:8546/0.1/rig2 
aquaminer-gpu -F http://x.x.x.x:8546/0x...1234/rig3 
Pools that work with this proxy

Below is from fork origin's README.md:

Donations

Thanks to a couple of dudes who donated some Ether to me, I believe, you can do the same.

License

The MIT License (MIT).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Generated from https://github.com/streamrail/concurrent-map
Generated from https://github.com/streamrail/concurrent-map

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址