Skip to content

Commit faa3bc5

Browse files
committed
f cleanup bunk copy
1 parent b324712 commit faa3bc5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,10 +1837,8 @@ mod tests {
18371837
let node_1_privkey = &SecretKey::from_slice(&[42; 32]).unwrap();
18381838
let node_2_privkey = &SecretKey::from_slice(&[41; 32]).unwrap();
18391839

1840-
let short_channel_id;
1841-
18421840
let valid_channel_announcement = get_signed_channel_announcement(|_| {}, node_1_privkey, node_2_privkey, &secp_ctx);
1843-
short_channel_id = valid_channel_announcement.contents.short_channel_id;
1841+
let short_channel_id = valid_channel_announcement.contents.short_channel_id;
18441842
let chain_source: Option<&test_utils::TestChainSource> = None;
18451843
assert!(network_graph.update_channel_from_announcement(&valid_channel_announcement, &chain_source, &secp_ctx).is_ok());
18461844
assert!(network_graph.read_only().channels().get(&short_channel_id).is_some());

0 commit comments

Comments
 (0)