Been working my way trough the main.cpp trying to see where this value is grabbed if at all.
I need a way to check how many coins have been mined regardless of block count. For example if every block has a random value how would one go about storing coins mined.
Continuously getting the value of the previous block and adding it to a coins mined int would be one solution, but where in main.cpp would it be best to do this and how?
I would need to be able to apply this value for generation of new blocks in GetBlockValue()
Is this value already parsed somewhere when parsing the previous block? Or is it disregarded seeing as the original bitcoin and litecoin had a set value pr block + fees?
Would really appreciate assistance in this matter. Or an extremely well commentated main.cpp.