Skip to content

Commit e162af5

Browse files
committed
use correct rc
1 parent 3ca3c74 commit e162af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flamenco/runtime/program/fd_vote_program.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ update_commission( fd_exec_instr_ctx_t * ctx,
958958
/* https://github.com/anza-xyz/agave/blob/v3.1.1/programs/vote/src/vote_state/mod.rs#L800-L804 */
959959
fd_vote_state_versioned_t * vote_state_versioned = NULL;
960960
int enforce_commission_update_rule = 1;
961-
if( FD_LIKELY( rc==FD_EXECUTOR_INSTR_SUCCESS ) ) {
961+
if( FD_LIKELY( get_vsv_rc==FD_EXECUTOR_INSTR_SUCCESS ) ) {
962962
vote_state_versioned = (fd_vote_state_versioned_t *)ctx->runtime->vote_program.update_commission.vote_state_mem;
963963
enforce_commission_update_rule = (commission>fd_vsv_get_commission( vote_state_versioned ));
964964
}

0 commit comments

Comments
 (0)