Rework validator vote account defaults to half voting fees (#8858)

automerge
This commit is contained in:
mergify[bot]
2020-03-13 21:47:32 -07:00
committed by GitHub
parent f536d805ed
commit 231c9b25d1
20 changed files with 140 additions and 134 deletions

View File

@@ -467,8 +467,9 @@ fn main() -> Result<(), Box<dyn error::Error>> {
Account::new(bootstrap_validator_lamports, 0, &system_program::id()),
);
let vote_account = vote_state::create_account(
&vote_pubkey,
let vote_account = vote_state::create_account_with_authorized(
&identity_pubkey,
&identity_pubkey,
&identity_pubkey,
100,
VoteState::get_rent_exempt_reserve(&rent).max(1),