docs: update release notes

This commit is contained in:
yyforyongyu 2024-07-30 17:32:11 +08:00
parent e542351149
commit dcd8269050
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -58,6 +58,36 @@ commitment when the channel was force closed.
send payment stream context, or automatically at the end of the timeout period
if the user provided `timeout_seconds`.
* The [SendCoinsRequest](https://github.com/lightningnetwork/lnd/pull/8955) now
takes an optional param `Outpoints`, which is a list of `*lnrpc.OutPoint`
that specifies the coins from the wallet to be spent in this RPC call. To
send selected coins to a given address with a given amount,
```go
req := &lnrpc.SendCoinsRequest{
Addr: ...,
Amount: ...,
Outpoints: []*lnrpc.OutPoint{
selected_wallet_utxo_1,
selected_wallet_utxo_2,
},
}
SendCoins(req)
```
To send selected coins to a given address without change output,
```go
req := &lnrpc.SendCoinsRequest{
Addr: ...,
SendAll: true,
Outpoints: []*lnrpc.OutPoint{
selected_wallet_utxo_1,
selected_wallet_utxo_2,
},
}
SendCoins(req)
```
## lncli Additions
* [Added](https://github.com/lightningnetwork/lnd/pull/8491) the `cltv_expiry`
@ -68,6 +98,18 @@ commitment when the channel was force closed.
command returns the fee rate estimate for on-chain transactions in sat/kw and
sat/vb to achieve a given confirmation target.
* [`sendcoins` now takes an optional utxo
flag](https://github.com/lightningnetwork/lnd/pull/8955). This allows users
to specify the coins that they want to use as inputs for the transaction. To
send selected coins to a given address with a given amount,
```sh
sendcoins --addr YOUR_ADDR --amt YOUR_AMT --utxo selected_wallet_utxo1 --utxo selected_wallet_utxo2
```
To send selected coins to a given address without change output,
```sh
sendcoins --addr YOUR_ADDR --utxo selected_wallet_utxo1 --utxo selected_wallet_utxo2 --sweepall
```
# Improvements
## Functional Updates