Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,7 @@ impl Node {
.try_into()
.expect("a 16-byte slice should convert into a [u8; 16]"),
);
self.runtime.block_on(self.peer_store.add_peer(peer_info.clone()))?;

// Register the fee-rate override before creating the channel, as the
// `FundingGenerationReady` event may be handled before `create_channel` returns.
Expand Down Expand Up @@ -1577,7 +1578,6 @@ impl Node {
zero_reserve_string,
peer_info.node_id
);
self.runtime.block_on(self.peer_store.add_peer(peer_info))?;
Ok(UserChannelId(user_channel_id))
},
Err(e) => {
Expand Down
Loading