Skip to content

YaroslavGaponov/cpuminer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miner

CPU bitcoin miner

Demo

Demo block

from example.json file

{
    "ver": 1,
    "prev_hash": "00000000000008a3a41b85b8b29ad444def299fee21793cd8b9e567eab02cd81",
    "mrkl_root": "2b12fcf1b09288fcaff797d71e950e71ae42b91e8bdb2304758dfcffc2b620e3",
    "time": 1305998791,
    "bits": 440711666
}

from url

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

Run

from file

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

from url

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

Result

Nonce from 0 to 4294967295, zerobits is 52

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

About

Bitcoin CPU miner written in Go.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages