File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ pub mod ser;
20
20
pub mod message_signing;
21
21
pub mod invoice;
22
22
pub mod persist;
23
+ pub mod scid_utils;
23
24
pub mod string;
24
25
pub mod wakers;
25
26
#[ cfg( fuzzing) ]
@@ -30,7 +31,6 @@ pub(crate) mod base32;
30
31
pub ( crate ) mod atomic_counter;
31
32
pub ( crate ) mod byte_utils;
32
33
pub ( crate ) mod transaction_utils;
33
- pub ( crate ) mod scid_utils;
34
34
pub ( crate ) mod time;
35
35
36
36
pub mod indexed_map;
Original file line number Diff line number Diff line change 7
7
// You may not use this file except in accordance with one or both of these
8
8
// licenses.
9
9
10
+ //! Utilities for creating and parsing short channel ids.
11
+
10
12
/// Maximum block height that can be used in a `short_channel_id`. This
11
13
/// value is based on the 3-bytes available for block height.
12
14
pub const MAX_SCID_BLOCK : u64 = 0x00ffffff ;
@@ -22,8 +24,11 @@ pub const MAX_SCID_VOUT_INDEX: u64 = 0xffff;
22
24
/// A `short_channel_id` construction error
23
25
#[ derive( Debug , PartialEq , Eq ) ]
24
26
pub enum ShortChannelIdError {
27
+ /// Block height too high
25
28
BlockOverflow ,
29
+ /// Tx index too high
26
30
TxIndexOverflow ,
31
+ /// Vout index too high
27
32
VoutIndexOverflow ,
28
33
}
29
34
@@ -91,8 +96,11 @@ pub(crate) mod fake_scid {
91
96
/// into the fake scid.
92
97
#[ derive( Copy , Clone ) ]
93
98
pub ( crate ) enum Namespace {
99
+ /// Phantom nodes namespace
94
100
Phantom ,
101
+ /// SCID aliases for outbound private channels
95
102
OutboundAlias ,
103
+ /// Payment interception namespace
96
104
Intercept
97
105
}
98
106
You can’t perform that action at this time.
0 commit comments