Merge pull request #5200 from champo/send_all_min_confs

sweep,rpc: honor minConfs paramater when SendAll is set
This commit is contained in:
Olaoluwa Osuntokun
2021-06-18 14:08:45 -07:00
committed by GitHub
3 changed files with 7 additions and 5 deletions

View File

@ -1207,6 +1207,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
@ -1259,6 +1260,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