@@ -84,7 +84,6 @@ pub(crate) fn read_network_graph<R: Read>(
84
84
let short_channel_id = previous_scid + scid_delta. 0 ;
85
85
previous_scid = short_channel_id;
86
86
87
- // let short_channel_id = Readable::read(read_cursor)?;
88
87
let node_id_1_index: BigSize = Readable :: read ( read_cursor) ?;
89
88
let node_id_2_index: BigSize = Readable :: read ( read_cursor) ?;
90
89
let node_id_1 = node_ids[ node_id_1_index. 0 as usize ] ;
@@ -147,8 +146,6 @@ pub(crate) fn read_network_graph<R: Read>(
147
146
} ;
148
147
149
148
for _current_update_index in 0 ..update_count {
150
- // println!("update index: {}", _current_update_index);
151
-
152
149
let scid_delta: BigSize = Readable :: read ( read_cursor) ?;
153
150
let short_channel_id = previous_scid + scid_delta. 0 ;
154
151
previous_scid = short_channel_id;
@@ -160,8 +157,7 @@ pub(crate) fn read_network_graph<R: Read>(
160
157
let standard_channel_flags = channel_flags & 0b_0000_0011 ;
161
158
162
159
let mut synthetic_update = if channel_flags & 0b_1000_0000 == 0 {
163
- // full update
164
- // println!("channel flags: {:b}, scid: {}, full update", channel_flags, short_channel_id);
160
+ // full update, field flags will indicate deviations from the default
165
161
UnsignedChannelUpdate {
166
162
chain_hash,
167
163
short_channel_id,
@@ -175,9 +171,7 @@ pub(crate) fn read_network_graph<R: Read>(
175
171
excess_data : vec ! [ ] ,
176
172
}
177
173
} else {
178
- // incremental update
179
- // println!("channel flags: {:b}, incremental update", channel_flags);
180
-
174
+ // incremental update, field flags will indicate mutated values
181
175
let read_only_network_graph = network_graph. read_only ( ) ;
182
176
let channel = read_only_network_graph
183
177
. channels ( )
@@ -245,7 +239,6 @@ pub(crate) fn read_network_graph<R: Read>(
245
239
} ;
246
240
}
247
241
248
- // println!("full update scid/flags: {}/{}", synthetic_update.short_channel_id, synthetic_update.flags);
249
242
network_graph. update_channel_unsigned ( & synthetic_update) ?;
250
243
}
251
244
0 commit comments