Hi All,
I am trying to understand working of bitcoin mining and going through the source code of cpuminer-opt. The source code is really helpful, Thanks!
I have a basic question, my understanding is that in a coinbase transaction miner adds Coinbase_reward + fees (total fees from all the transactions included in the block being mined).
I can see the cpu-miner.c code adding Coinbase_reward by taking coinbasevalue, but I could not find code for fees getting added. Can someone please point me to the code that does that?
Thanks & Regards,
Sandy
PS
Referring :
https://github.com/JayDDee/cpuminer-opt/blob/master/cpu-miner.cI think you're looking for the merkle tree but that's not my area of expertise. You might get better advice elsewhere.