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

automerge
This commit is contained in:
Rob Walker
2019-07-02 14:18:11 -07:00
committed by Grimes
parent 8620d0a3b2
commit 12ef0c25b5
7 changed files with 21 additions and 21 deletions

View File

@@ -695,7 +695,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)