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

@@ -205,8 +205,8 @@ pub struct RpcVoteAccountInfo {
/// The current stake, in lamports, delegated to this vote account
pub stake: u64,
/// A 32-bit integer used as a fraction (commission/MAX_U32) for rewards payout
pub commission: u32,
/// An 8-bit integer used as a fraction (commission/MAX_U8) for rewards payout
pub commission: u8,
}
#[rpc(server)]