Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit ca7d387

Browse files
authored
single-pool: support new 1.16 vote account (#4595)
1 parent a88f413 commit ca7d387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stake-pool/single-pool/src/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ fn check_vote_account(vote_account_info: &AccountInfo) -> Result<(), ProgramErro
224224
.ok_or(SinglePoolError::UnparseableVoteAccount)?;
225225

226226
match u32::from_le_bytes(state_variant) {
227-
1 => Ok(()),
227+
1 | 2 => Ok(()),
228228
0 => Err(SinglePoolError::LegacyVoteAccount.into()),
229229
_ => Err(SinglePoolError::UnparseableVoteAccount.into()),
230230
}

0 commit comments

Comments
 (0)