File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ pub mod ser;
2020pub  mod  message_signing; 
2121pub  mod  invoice; 
2222pub  mod  persist; 
23+ pub  mod  scid_utils; 
2324pub  mod  string; 
2425pub  mod  wakers; 
2526#[ cfg( fuzzing) ]  
@@ -34,7 +35,6 @@ pub(crate) mod chacha20;
3435pub ( crate )  mod  poly1305; 
3536pub ( crate )  mod  chacha20poly1305rfc; 
3637pub ( crate )  mod  transaction_utils; 
37- pub ( crate )  mod  scid_utils; 
3838pub ( crate )  mod  time; 
3939
4040pub  mod  indexed_map; 
Original file line number Diff line number Diff line change 77// You may not use this file except in accordance with one or both of these 
88// licenses. 
99
10+ //! Utilities for creating and parsing short channel ids. 
11+ 
1012/// Maximum block height that can be used in a `short_channel_id`. This 
1113/// value is based on the 3-bytes available for block height. 
1214pub  const  MAX_SCID_BLOCK :  u64  = 0x00ffffff ; 
@@ -22,8 +24,11 @@ pub const MAX_SCID_VOUT_INDEX: u64 = 0xffff;
2224/// A `short_channel_id` construction error 
2325#[ derive( Debug ,  PartialEq ,  Eq ) ]  
2426pub  enum  ShortChannelIdError  { 
27+ 	/// Block height too high 
2528 	BlockOverflow , 
29+ 	/// Tx index too high 
2630 	TxIndexOverflow , 
31+ 	/// Vout index too high 
2732 	VoutIndexOverflow , 
2833} 
2934
@@ -91,8 +96,11 @@ pub(crate) mod fake_scid {
9196 	/// into the fake scid. 
9297 	#[ derive( Copy ,  Clone ) ]  
9398	pub ( crate )  enum  Namespace  { 
99+ 		/// Phantom nodes namespace 
94100 		Phantom , 
101+ 		/// SCID aliases for outbound private channels 
95102 		OutboundAlias , 
103+ 		/// Payment interception namespace 
96104 		Intercept 
97105	} 
98106
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments