Revert "fix int overflow in getstakinginfo"

This reverts commit b378004f14985db3b8385126b588c3f92fde6137.