2

I was reading Antonopoulos' book and there is a piece of code in chapter 8 in the part about Coinbase Reward and Fees and the code is a GetBlockValue() function. I was looking for it on github but didn't find it. I found something about a function called GetBlockSubsidy() that works in a similar way and is apparently a newer version but I can't find this one either. Also all the links I found linking to main.cpp in the repository don't work. Where is this part of the code now or what am I missing?

1 Answer 1

4

GetBlockValue was renamed to GetBlockSubsidy, and main.cpp was renamed to validation.cpp. So you should now look at GetBlockSubsidy in src/validation.cpp.

You can search on Github for GetBlockValue; you won't find any hits in code but you will find some in commits. That's how I found this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.