Skip to content

Commit 1ccd114

Browse files
authored
Merge pull request #23 from EthanYuan/fix-doc
fix: `flags` comment.
2 parents 8de163a + fbb78bf commit 1ccd114

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

verifier/src/types/core.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,14 @@ pub struct SpvTypeArgs {
8787
///
8888
/// N.B. Exclude the SPV info cell.
8989
pub clients_count: u8,
90-
/// Bit flags to control features.
90+
/// Bit flags to control SPV client features and chain identification.
9191
///
9292
/// From high to low:
93-
/// - Set 0-th bit to true, to disable difficulty checks.
94-
/// - Other bits are reserved.
93+
/// - The two highest bits are reserved for chain type identification:
94+
/// - 0b00 for mainnet
95+
/// - 0b10 for testnet
96+
/// - 0b01 for signet
97+
/// - Other bits are reserved for future use.
9598
pub flags: u8,
9699
}
97100

0 commit comments

Comments
 (0)