allow vote to have 1 or 2 sigs (#20082)

This commit is contained in:
Tao Zhu
2021-09-21 22:13:44 -05:00
committed by GitHub
parent 14505f5bfd
commit 431a82276e

View File

@ -265,7 +265,9 @@ fn check_for_simple_vote_transaction(
packet_offsets: &PacketOffsets, packet_offsets: &PacketOffsets,
current_offset: usize, current_offset: usize,
) -> Result<(), PacketError> { ) -> Result<(), PacketError> {
if packet_offsets.sig_len != 1 { // vote could have 1 or 2 sigs; zero sig has already been excluded at
// do_get_packet_offsets.
if packet_offsets.sig_len > 2 {
return Err(PacketError::InvalidSignatureLen); return Err(PacketError::InvalidSignatureLen);
} }