sweep,rpc: honor minConfs paramater when SendAll is set

This commit is contained in:
Juan Pablo Civile committed 2021-04-12 15:58:43 -03:00
1 parent 213b264e4c
commit 09c4ff509d
3 files changed
+7 -5

No files matched your search

+2
View File
@@ -1194,6 +1194,7 @@ func (r *rpcServer) SendCoins(ctx context.Context,
uint32(bestHeight), nil, targetAddr, wallet,
wallet, wallet.WalletController,
r.server.cc.FeeEstimator, r.server.cc.Signer,
minConfs,
)
if err != nil {
return nil, err
@@ -1246,6 +1247,7 @@ func (r *rpcServer) SendCoins(ctx context.Context,
uint32(bestHeight), outputs, targetAddr, wallet,
wallet, wallet.WalletController,
r.server.cc.FeeEstimator, r.server.cc.Signer,
minConfs,
)
if err != nil {
return nil, err