Don't ignore VoteProgram errors
This commit is contained in:
parent
2696b22348
commit
5fce8d2ce1
|
@ -797,7 +797,9 @@ impl Bank {
|
||||||
return Err(BankError::ProgramRuntimeError(instruction_index as u8));
|
return Err(BankError::ProgramRuntimeError(instruction_index as u8));
|
||||||
}
|
}
|
||||||
} else if VoteProgram::check_id(&program_id) {
|
} 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 {
|
} else {
|
||||||
let mut depth = 0;
|
let mut depth = 0;
|
||||||
let mut keys = Vec::new();
|
let mut keys = Vec::new();
|
||||||
|
|
Loading…
Reference in New Issue