Skip to content

Commit

Permalink
Add artificial sleep after opening channel
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGiorgio committed Jun 9, 2023
1 parent 86298e5 commit e28085a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mutiny-core/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,8 @@ impl<S: MutinyStorage> Node<S> {
.find(|c| c.user_channel_id == user_channel_id);

if let Some(outpoint) = channel.and_then(|c| c.funding_txo) {
// TODO wait until Event::ChannelPending after funding tx generated
sleep(1_000).await;
return Ok(outpoint.into_bitcoin_outpoint());
}

Expand Down

0 comments on commit e28085a

Please sign in to comment.