Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 935 Bytes

README.md

File metadata and controls

37 lines (30 loc) · 935 Bytes

CPU Miner

A very simple (and naive) single-threaded CPU miner for Siacoin testnet mining.

Prerequisites

  • A running walletd node.
    • Does not need to have any addresses or wallets.
  • A Siacoin address to mine to

Building

go build -o bin/ ./cmd/cpuminerd

Usage

./cpuminerd --addr="addr:000000000000000000000000000000000000000000000000000000000000000089eb0d6a8a69" --http="http://localhost:9980/api" --password="sia is cool"

Docker Compose

services:
  walletd:
    image: ghcr.io/siafoundation/walletd:master
    ports:
      - localhost:9980:9980
      - 9981:9981
    volumes:
      - ./wallet:/data
    restart: unless-stopped
  cpu-miner:
    image: ghcr.io/siafoundation/cpuminer:master
    command: --addr="addr:000000000000000000000000000000000000000000000000000000000000000089eb0d6a8a69" --http="http://walletd:9980/api" --password="sia is cool"
    restart: unless-stopped