remove unneeded code
check block timestamp earlier
fix int overflow in getstakinginfo