Revert "remove unused function in block rewards. fix some descrepancys in previous blocks."

This reverts commit 5494b3c4dd9e1244de1f4878d1130d2317154bdb.

Conflicts:

	Makefile