Skip to content

Commit e12329d

Browse files
committed
Update BlockHeader::version documentation
1 parent 8a997b1 commit e12329d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/blockdata/block.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ use crate::VarInt;
4242
#[derive(Copy, PartialEq, Eq, Clone, Debug)]
4343
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
4444
pub struct BlockHeader {
45-
/// The protocol version. Should always be 1.
45+
/// Originally protocol version, but repurposed for soft-fork signaling.
46+
///
47+
/// ### Relevant BIPs
48+
///
49+
/// * [BIP9 - Version bits with timeout and delay](https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki) (current usage)
50+
/// * [BIP34 - Block v2, Height in Coinbase](https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki)
4651
pub version: i32,
4752
/// Reference to the previous block in the chain.
4853
pub prev_blockhash: BlockHash,

0 commit comments

Comments
 (0)