mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
lnd: fix sweepall argument call.
maxFeeRate and feePerKw were switched in CraftSweepAllTx.
This commit is contained in:
parent
5599b3c9e2
commit
eba4911599
1 changed files with 2 additions and 2 deletions
|
@ -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