@@ -1514,12 +1514,10 @@ impl<S: MutinyStorage> NodeManager<S> {
1514
1514
/// The UTXOs must all exist in the wallet.
1515
1515
pub async fn sweep_utxos_to_channel (
1516
1516
& self ,
1517
- user_chan_id : Option < u128 > ,
1518
- self_node_pubkey : Option < & PublicKey > ,
1519
1517
utxos : & [ OutPoint ] ,
1520
1518
to_pubkey : Option < PublicKey > ,
1521
1519
) -> Result < MutinyChannel , MutinyError > {
1522
- let node = self . get_node_by_key_or_first ( self_node_pubkey ) . await ?;
1520
+ let node = self . get_node_by_key_or_first ( None ) . await ?;
1523
1521
let to_pubkey = match to_pubkey {
1524
1522
Some ( pubkey) => pubkey,
1525
1523
None => node
@@ -1530,7 +1528,7 @@ impl<S: MutinyStorage> NodeManager<S> {
1530
1528
} ;
1531
1529
1532
1530
let outpoint = node
1533
- . sweep_utxos_to_channel_with_timeout ( user_chan_id , utxos, to_pubkey, 60 )
1531
+ . sweep_utxos_to_channel_with_timeout ( None , utxos, to_pubkey, 60 )
1534
1532
. await ?;
1535
1533
1536
1534
let all_channels = node. channel_manager . list_channels ( ) ;
@@ -1550,8 +1548,6 @@ impl<S: MutinyStorage> NodeManager<S> {
1550
1548
/// The node must be online and have a connection to the peer.
1551
1549
pub async fn sweep_all_to_channel (
1552
1550
& self ,
1553
- user_chan_id : Option < u128 > ,
1554
- from_node : Option < & PublicKey > ,
1555
1551
to_pubkey : Option < PublicKey > ,
1556
1552
) -> Result < MutinyChannel , MutinyError > {
1557
1553
let utxos = self
@@ -1560,8 +1556,7 @@ impl<S: MutinyStorage> NodeManager<S> {
1560
1556
. map ( |u| u. outpoint )
1561
1557
. collect :: < Vec < _ > > ( ) ;
1562
1558
1563
- self . sweep_utxos_to_channel ( user_chan_id, from_node, & utxos, to_pubkey)
1564
- . await
1559
+ self . sweep_utxos_to_channel ( & utxos, to_pubkey) . await
1565
1560
}
1566
1561
1567
1562
/// Closes a channel with the given outpoint.
0 commit comments