Skip to content

Commit 8273f07

Browse files
committed
revert to original method
1 parent 98ae1b1 commit 8273f07

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/payment/onchain.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,12 @@ impl OnchainPayment {
8080
return Err(Error::NotRunning);
8181
}
8282

83-
// let validated_address = self.parse_and_validate_address(self.config.network, &address)?;
84-
8583
let cur_anchor_reserve_sats =
8684
crate::total_anchor_channels_reserve_sats(&self.channel_manager, &self.config);
8785
let send_amount =
8886
OnchainSendAmount::ExactRetainingReserve { amount_sats, cur_anchor_reserve_sats };
8987
let fee_rate_opt = maybe_map_fee_rate_opt!(fee_rate);
90-
self.wallet.send_to_address(&address, send_amount, fee_rate_opt)
88+
self.wallet.send_to_address(address, send_amount, fee_rate_opt)
9189
}
9290

9391
/// Send an on-chain payment to the given address, draining the available funds.
@@ -122,6 +120,6 @@ impl OnchainPayment {
122120
};
123121

124122
let fee_rate_opt = maybe_map_fee_rate_opt!(fee_rate);
125-
self.wallet.send_to_address(&address, send_amount, fee_rate_opt)
123+
self.wallet.send_to_address(address, send_amount, fee_rate_opt)
126124
}
127125
}

0 commit comments

Comments
 (0)