Add `BlockHeader` Bitcoin Core reference link

This commit is contained in:
Dawid Ciężarkiewicz 2022-05-27 16:50:07 -07:00
parent f4922f6fe7
commit 7c2ca3d20b
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ use crate::VarInt;
/// A block header, which contains all the block's information except /// A block header, which contains all the block's information except
/// the actual transactions /// the actual transactions
///
/// # Bitcoin Core References
///
/// * [CBlockHeader definition](https://github.com/bitcoin/bitcoin/blob/345457b542b6a980ccfbc868af0970a6f91d1b82/src/primitives/block.h#L20)
#[derive(Copy, PartialEq, Eq, Clone, Debug)] #[derive(Copy, PartialEq, Eq, Clone, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct BlockHeader { pub struct BlockHeader {