refactor: use camel case for minConfs

This commit is contained in:
Tom Kirkpatrick committed 2021-04-22 20:35:00 +02:00
1 parent 2b5c9e1606
commit 03b55446b5
7 files changed
+23 -23

No files matched your search

+2 -2
View File
@@ -964,7 +964,7 @@ func allowCORS(handler http.Handler, origins []string) http.Handler {
// more addresses specified in the passed payment map. The payment map maps an
// address to a specified output value to be sent to that address.
func (r *rpcServer) sendCoinsOnChain(paymentMap map[string]int64,
feeRate chainfee.SatPerKWeight, minconf int32,
feeRate chainfee.SatPerKWeight, minConfs int32,
label string) (*chainhash.Hash, error) {
outputs, err := addrPairsToOutputs(paymentMap, r.cfg.ActiveNetParams.Params)
@@ -989,7 +989,7 @@ func (r *rpcServer) sendCoinsOnChain(paymentMap map[string]int64,
// If that checks out, we're failry confident that creating sending to
// these outputs will keep the wallet balance above the reserve.
tx, err := r.server.cc.Wallet.SendOutputs(
outputs, feeRate, minconf, label,
outputs, feeRate, minConfs, label,
)
if err != nil {
return nil, err