Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Award one credit per dequeued vote when processing VoteStateUpdate in… (
Browse files Browse the repository at this point in the history
#25743)

* Award one credit per dequeued vote when processing VoteStateUpdate instruction,
to match vote rewards of Vote instruction.

* Update feature pubkey to one owned by cc (ashwin)

Co-authored-by: Ashwin Sekar <[email protected]>
(cherry picked from commit cbb0f07)

# Conflicts:
#	programs/stake/src/stake_instruction.rs
#	sdk/src/feature_set.rs
  • Loading branch information
bji authored and mergify[bot] committed Jun 6, 2022
1 parent 1545649 commit 1a832e0
Show file tree
Hide file tree
Showing 6 changed files with 3,557 additions and 32 deletions.
2 changes: 1 addition & 1 deletion program-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ impl ProgramTestContext {

let epoch = bank.epoch();
for _ in 0..number_of_credits {
vote_state.increment_credits(epoch);
vote_state.increment_credits(epoch, 1);
}
let versioned = VoteStateVersions::new_current(vote_state);
VoteState::to(&versioned, &mut vote_account).unwrap();
Expand Down
Loading

0 comments on commit 1a832e0

Please sign in to comment.