Skip to content

Commit

Permalink
Revert "allow vote to have 1 or 2 sigs (solana-labs#20082)"
Browse files Browse the repository at this point in the history
This reverts commit 7ba4ccf.
  • Loading branch information
frits-metalogix authored Nov 24, 2021
1 parent a0e2aa4 commit 1ce0617
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions perf/src/sigverify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ fn check_for_simple_vote_transaction(
packet_offsets: &PacketOffsets,
current_offset: usize,
) -> Result<(), PacketError> {
// vote could have 1 or 2 sigs; zero sig has already been excluded at
// do_get_packet_offsets.
if packet_offsets.sig_len > 2 {
if packet_offsets.sig_len != 1 {
return Err(PacketError::InvalidSignatureLen);
}

Expand Down

0 comments on commit 1ce0617

Please sign in to comment.