discards serialized gossip crds votes if cannot parse tx (#22129)

This commit is contained in:
behzad nouri
2021-12-29 19:31:26 +00:00
committed by GitHub
parent b1d9a2e60e
commit c9c78622a8
6 changed files with 53 additions and 51 deletions

View File

@ -441,7 +441,7 @@ pub fn submit_vote_to_cluster_gossip(
vec![CrdsValue::new_signed(
CrdsData::Vote(
0,
crds_value::Vote::new(node_keypair.pubkey(), vote_tx, timestamp()),
crds_value::Vote::new(node_keypair.pubkey(), vote_tx, timestamp()).unwrap(),
),
node_keypair,
)],