Merge pull request #8609 from ziggie1984/master

lnd: fix sweepall argument call.
This commit is contained in:
Oliver Gugger 2024-04-02 11:04:37 +00:00 committed by GitHub
commit b331e73b67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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,