Author

Topic: What file that code actually 'work' for mine? (Read 120 times)

jr. member
Activity: 413
Merit: 5
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.
legendary
Activity: 990
Merit: 1108
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
legendary
Activity: 1624
Merit: 2481
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
jr. member
Activity: 413
Merit: 5
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?
Jump to: