Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/yaroslavgaponov/cpuminer
- Owner: YaroslavGaponov
- Created: 2021-11-30T13:28:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-06T15:52:03.000Z (almost 3 years ago)
- Last Synced: 2024-11-11T12:07:14.912Z (7 days ago)
- Topics: bitcoin, cpu-miner, golang, miner
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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 52Mining ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░ 52% | 6307278 ops/secs
Nonce is 2261454747
Hash is 00000000000000000009d964cc2beba0a60b2d070b9acbecd1635a09603f2d64
Time 5m58.5515219s
```