Skip to content

Commit

Permalink
chore: apply review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
quake committed Jan 11, 2024
1 parent 4231abb commit c15c174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/protocols/light_client/components/send_blocks_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl<'a> SendBlocksProofProcess<'a> {
return_if_failed!(self.protocol.check_pow_for_headers(headers.iter()));

// Check extra hash for blocks
let is_v1 = self.message.has_extra_fields() && self.message.count_extra_fields() >= 2;
let is_v1 = self.message.count_extra_fields() >= 2;
let extensions = if is_v1 {
let message_v1 =
packed::SendBlocksProofV1Reader::new_unchecked(self.message.as_slice());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl<'a> SendTransactionsProofProcess<'a> {
return_if_failed!(self.protocol.check_pow_for_headers(headers.iter()));

// Check extra hash for blocks
let is_v1 = self.message.has_extra_fields() && self.message.count_extra_fields() >= 2;
let is_v1 = self.message.count_extra_fields() >= 2;
let extensions = if is_v1 {
let message_v1 =
packed::SendTransactionsProofV1Reader::new_unchecked(self.message.as_slice());
Expand Down

0 comments on commit c15c174

Please sign in to comment.