sweep: pass dustLimit to CreateSweepTx

This commit is contained in:
Johan T. Halseth
2020-11-06 19:44:12 +01:00
parent 3d209059c1
commit aa8fa9d0cf
6 changed files with 30 additions and 21 deletions

View File

@ -1254,7 +1254,8 @@ func (r *rpcServer) SendCoins(ctx context.Context,
// single transaction. This will be generated in a concurrent
// safe manner, so no need to worry about locking.
sweepTxPkg, err := sweep.CraftSweepAllTx(
feePerKw, uint32(bestHeight), targetAddr, wallet,
feePerKw, lnwallet.DefaultDustLimit(),
uint32(bestHeight), targetAddr, wallet,
wallet.WalletController, wallet.WalletController,
r.server.cc.FeeEstimator, r.server.cc.Signer,
)