added premine and getBlockValue changes