From fbb78bf5bfdf76c41b919d6213b3495bb7b4ee7d Mon Sep 17 00:00:00 2001 From: EthanYuan Date: Fri, 11 Oct 2024 11:09:18 +0800 Subject: [PATCH] fix flags comment. --- verifier/src/types/core.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/verifier/src/types/core.rs b/verifier/src/types/core.rs index 00e5926..220cfd7 100644 --- a/verifier/src/types/core.rs +++ b/verifier/src/types/core.rs @@ -87,11 +87,14 @@ pub struct SpvTypeArgs { /// /// N.B. Exclude the SPV info cell. pub clients_count: u8, - /// Bit flags to control features. + /// Bit flags to control SPV client features and chain identification. /// /// From high to low: - /// - Set 0-th bit to true, to disable difficulty checks. - /// - Other bits are reserved. + /// - The two highest bits are reserved for chain type identification: + /// - 0b00 for mainnet + /// - 0b10 for testnet + /// - 0b01 for signet + /// - Other bits are reserved for future use. pub flags: u8, }