mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
Merge pull request #8609 from ziggie1984/master
lnd: fix sweepall argument call.
This commit is contained in:
commit
b331e73b67
2 changed files with 5 additions and 2 deletions
|
@ -109,6 +109,9 @@
|
|||
|
||||
* [Removed](https://github.com/lightningnetwork/lnd/pull/8577) some unreachable code
|
||||
|
||||
[Fixed](https://github.com/lightningnetwork/lnd/pull/8609) fixed a function
|
||||
call where arguments were swapped.
|
||||
|
||||
# New Features
|
||||
## Functional Enhancements
|
||||
|
||||
|
|
|
@ -1310,7 +1310,7 @@ func (r *rpcServer) SendCoins(ctx context.Context,
|
|||
// pay to the change address created above if we needed to
|
||||
// reserve any value, the rest will go to targetAddr.
|
||||
sweepTxPkg, err := sweep.CraftSweepAllTx(
|
||||
maxFeeRate, feePerKw, uint32(bestHeight), nil,
|
||||
feePerKw, maxFeeRate, uint32(bestHeight), nil,
|
||||
targetAddr, wallet, wallet, wallet.WalletController,
|
||||
r.server.cc.Signer, minConfs,
|
||||
)
|
||||
|
@ -1363,7 +1363,7 @@ func (r *rpcServer) SendCoins(ctx context.Context,
|
|||
}
|
||||
|
||||
sweepTxPkg, err = sweep.CraftSweepAllTx(
|
||||
maxFeeRate, feePerKw, uint32(bestHeight),
|
||||
feePerKw, maxFeeRate, uint32(bestHeight),
|
||||
outputs, targetAddr, wallet, wallet,
|
||||
wallet.WalletController,
|
||||
r.server.cc.Signer, minConfs,
|
||||
|
|
Loading…
Add table
Reference in a new issue