diff --git a/src/bank.rs b/src/bank.rs index 86d036863e..da0ac3d7ea 100644 --- a/src/bank.rs +++ b/src/bank.rs @@ -797,7 +797,9 @@ impl Bank { return Err(BankError::ProgramRuntimeError(instruction_index as u8)); } } else if VoteProgram::check_id(&program_id) { - VoteProgram::process_transaction(&tx, instruction_index, program_accounts).is_err(); + if VoteProgram::process_transaction(&tx, instruction_index, program_accounts).is_err() { + return Err(BankError::ProgramRuntimeError(instruction_index as u8)); + } } else { let mut depth = 0; let mut keys = Vec::new();