Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yaroslavgaponov/cpuminer

Bitcoin CPU miner written in Go.
https://github.com/yaroslavgaponov/cpuminer

bitcoin cpu-miner golang miner

Last synced: 7 days ago
JSON representation

Bitcoin CPU miner written in Go.

Awesome Lists containing this project

README

        

Miner
==============
CPU bitcoin miner

# Demo

## Demo block

### from `example.json` file

```json
{
"ver": 1,
"prev_hash": "00000000000008a3a41b85b8b29ad444def299fee21793cd8b9e567eab02cd81",
"mrkl_root": "2b12fcf1b09288fcaff797d71e950e71ae42b91e8bdb2304758dfcffc2b620e3",
"time": 1305998791,
"bits": 440711666
}
```
### from url

`https://blockchain.info/rawblock/00000000000000000009d964cc2beba0a60b2d070b9acbecd1635a09603f2d64`

## Run

## from file

```sh
go run cmd/miner/main.go --file=example.json --from=2400000000 --to=2600000000 --zerobits=52
```

## from url

```sh
go run cmd/miner/main.go --url=https://blockchain.info/rawblock/00000000000000000009d964cc2beba0a60b2d070b9acbecd1635a09603f2d64 --from=2260000000 --to=2270000000
```

## Result

```output
Nonce from 0 to 4294967295, zerobits is 52

Mining ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░ 52% | 6307278 ops/secs
Nonce is 2261454747
Hash is 00000000000000000009d964cc2beba0a60b2d070b9acbecd1635a09603f2d64
Time 5m58.5515219s
```