Use a int64_t for nMaxStakeValue.