Bitcoin Forum
May 02, 2024, 10:11:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin mining range  (Read 68 times)
kzsy (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 20, 2021, 10:42:45 AM
 #1

has anyone ever tried to write a bitcoin miner in C or assembler using functional programming?

a hash-check should be based on simple arithmetic, cutting out all the corners might make it more efficient. optimizing the compiler for such operations should also be an option.

i don't know much about programming myself, but it puzzles me that its getting so hard to mine bitcoins when the amount of viable hashes drecases over time. cant just make the target range smaller?

kind regards,
Kat
1714687889
Hero Member
*
Offline Offline

Posts: 1714687889

View Profile Personal Message (Offline)

Ignore
1714687889
Reply with quote  #2

1714687889
Report to moderator
1714687889
Hero Member
*
Offline Offline

Posts: 1714687889

View Profile Personal Message (Offline)

Ignore
1714687889
Reply with quote  #2

1714687889
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 3626
Merit: 2522


Evil beware: We have waffles!


View Profile
May 20, 2021, 12:29:33 PM
 #2

Quote
cant just make the target range smaller?
NO!
Try doing a search such as "How does Bitcoin work?" and you will find that the algorithm was designed as Proof Of Work aka PoW. You cannot cheat by cutting corners as that would (attempt) to defeat the whole point of POW.

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
kano
Legendary
*
Offline Offline

Activity: 4480
Merit: 1800


Linux since 1997 RedHat 4


View Profile
May 21, 2021, 02:24:17 AM
 #3

It already did do the 3% corner cutting back in 2011

Oddly enough I also thought about how to do that corner cutting myself back then, and asked about it specifically on the forum (Aug 2011), until I found out it was already being done.

But that 'corner cutting' is irrelevant when you consider that a new miner, mines literally at about 3000000 times faster than a CPU doing the same corner cutting and only uses about 10-20 times the power ...

Consider that a hash is about 1600 CPU instructions, so if you could make it only 1 instruction (which you can't), that's only a 1600 times speed up Tongue

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!