In which file is Monero getting this "last_reward" and "last_timestamp" and how it is calculating that?
1 Answer
They don't need to "calculate" it, or obtain from a "file". There are a few ways to obtain but they probably use get_last_block_header from the daemon RPC interface.