Bitcoin Forum
June 28, 2024, 09:55:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What file that code actually 'work' for mine?  (Read 115 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 02, 2018, 04:00:48 PM
 #1

So after block found, all workers(nodes) now work for new block,

following its algorithm, SHA256, if Bitcoin.

Then what is source file name (or function name even better) that code this algorithm actually working part?
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
March 02, 2018, 04:38:07 PM
 #2

Then what is source file name (or function name even better) that code this algorithm actually working part?

Could you clearify a bit what exactly you are looking for?
Bitcoin is open source and can be found here: https://github.com/bitcoin/bitcoin
For more information about block hashing you can take a look at this: https://en.bitcoin.it/wiki/Block_hashing_algorithm

tromp
Legendary
*
Offline Offline

Activity: 988
Merit: 1108


View Profile
March 02, 2018, 06:37:49 PM
 #3

So after block found, all workers(nodes) now work for new block,

following its algorithm, SHA256, if Bitcoin.

Then what is source file name (or function name even better) that code this algorithm actually working part?

https://github.com/bitcoin/bitcoin/blob/master/src/crypto/sha256.cpp
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 03, 2018, 05:06:13 AM
 #4

Then what is source file name (or function name even better) that code this algorithm actually working part?

Could you clearify a bit what exactly you are looking for?
Bitcoin is open source and can be found here: https://github.com/bitcoin/bitcoin
For more information about block hashing you can take a look at this: https://en.bitcoin.it/wiki/Block_hashing_algorithm

So I want to know script's structure, for new block generation process and its work process for satisfy proof of work function is pow.cpp.

Eventually, I want to know how to do actually mine and validate genesis block for new coin.
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!