change vote commission to u8 (from u32) (#4887) (#4918)

automerge
This commit is contained in:
mergify[bot]
2019-07-02 14:52:53 -07:00
committed by Grimes
parent 3c0b03ba84
commit 4779625f23
7 changed files with 271 additions and 20 deletions

View File

@@ -707,7 +707,7 @@ mod tests {
None, // would be Some((0, 2 * 1 + 1 * 2, 3)),
stake.calculate_rewards(1.0, &vote_state)
);
vote_state.commission = std::u32::MAX - 1;
vote_state.commission = std::u8::MAX - 1;
assert_eq!(
None, // would be pSome((0, 2 * 1 + 1 * 2, 3)),
stake.calculate_rewards(1.0, &vote_state)