sweep: pass dustLimit to CreateSweepTx

This commit is contained in:
Johan T. Halseth committed 2020-11-20 13:06:53 +01:00
1 parent 3d209059c1
commit aa8fa9d0cf
6 files changed
+30 -21

No files matched your search

+2 -1
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,
)