Skip to content

Commit 4580139

Browse files
committed
Rebase
1 parent f05e2ba commit 4580139

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

lightning-graph-sync/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ mod tests {
6666
3, 232, 0, 0, 0, 1, 1, 0, 0, 0, 0, 29, 129, 25, 192,
6767
];
6868

69-
fs::create_dir_all("./tmp/graph-sync-tests");
70-
fs::write("./tmp/graph-sync-tests/test_data.lngossip", valid_response);
69+
fs::create_dir_all("./tmp/graph-sync-tests").unwrap();
70+
fs::write("./tmp/graph-sync-tests/test_data.lngossip", valid_response).unwrap();
7171

7272
let block_hash = genesis_block(Network::Bitcoin).block_hash();
7373
let network_graph = NetworkGraph::new(block_hash);
@@ -83,7 +83,7 @@ mod tests {
8383
assert!(sync_result.is_ok());
8484

8585
let after = network_graph.to_string();
86-
assert_eq!(after.len(), 1737);
86+
assert_eq!(after.len(), 1727);
8787
assert!(
8888
after.contains("021607cfce19a4c5e7e6e738663dfafbbbac262e4ff76c2c9b30dbeefc35c00643:")
8989
);

lightning-graph-sync/src/processing.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ pub(crate) fn read_network_graph<R: Read>(
7070
let node_id_2 = Readable::read(read_cursor)?;
7171

7272
let announcement_result = network_graph.update_channel_from_announcement_fragments(
73-
chain_hash,
7473
short_channel_id,
7574
retrogressed_timestamp as u64,
7675
features,
@@ -382,7 +381,7 @@ mod tests {
382381
assert!(initialization_result.is_ok());
383382

384383
let initialized = network_graph.to_string();
385-
assert_eq!(initialized.len(), 1737);
384+
assert_eq!(initialized.len(), 1727);
386385
assert!(initialized
387386
.contains("021607cfce19a4c5e7e6e738663dfafbbbac262e4ff76c2c9b30dbeefc35c00643:"));
388387
assert!(initialized
@@ -440,7 +439,7 @@ mod tests {
440439
assert!(update_result.is_ok());
441440

442441
let after = network_graph.to_string();
443-
assert_eq!(after.len(), 2348);
442+
assert_eq!(after.len(), 2328);
444443
assert!(
445444
after.contains("021607cfce19a4c5e7e6e738663dfafbbbac262e4ff76c2c9b30dbeefc35c00643:")
446445
);
@@ -488,7 +487,7 @@ mod tests {
488487
assert!(update_result.is_ok());
489488

490489
let after = network_graph.to_string();
491-
assert_eq!(after.len(), 2348);
490+
assert_eq!(after.len(), 2328);
492491
assert!(
493492
after.contains("021607cfce19a4c5e7e6e738663dfafbbbac262e4ff76c2c9b30dbeefc35c00643:")
494493
);

lightning/src/routing/network_graph.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ impl NetworkGraph {
10901090
/// `timestamp: 64`: Timestamp the announcement was originally received.
10911091
///
10921092
/// All other parameters as used in `UnsignedChannelAnnouncement` fields.
1093-
pub fn update_channel_from_announcement_fragments(&self, chain_hash: BlockHash, short_channel_id: u64, timestamp: u64, features: ChannelFeatures, node_id_1: PublicKey, node_id_2: PublicKey) -> Result<(), LightningError>{
1093+
pub fn update_channel_from_announcement_fragments(&self, short_channel_id: u64, timestamp: u64, features: ChannelFeatures, node_id_1: PublicKey, node_id_2: PublicKey) -> Result<(), LightningError>{
10941094
if node_id_1 == node_id_2 {
10951095
return Err(LightningError{err: "Channel announcement node had a channel with itself".to_owned(), action: ErrorAction::IgnoreError});
10961096
};

0 commit comments

Comments
 (0)