Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Prev Previous commit
Next Next commit
Update client/rpc-spec-v2/src/chain_head/chain_head_follow.rs
Co-authored-by: Sebastian Kunert <[email protected]>
  • Loading branch information
bkchr and skunert authored Mar 22, 2023
commit c56a02a8a476144d8518a78d86f9a0c50fa8515f
2 changes: 1 addition & 1 deletion client/rpc-spec-v2/src/chain_head/chain_head_follow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ where
return Ok(Default::default())
};

// Find the parent hash.
// Find the parent header.
let Some(first_header) = self.client.header(*first_hash)? else {
return Err(SubscriptionManagementError::BlockHashAbsent)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit: This sounds like the block hash is absent, but its more HeaderNotFound or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense! I've changed it to BlockHeaderAbsent to make it explicit that we are missing the header from the db, thanks!

};
Expand Down