Adding const.
Merge pull request #5249

38c62ae Adding const. (sinetek)
Fix Art Forz's time-traveller attack, where a 51% attack can change difficulty at will.