From 5a0c010688cb4fa5d88dc2151247f9c104054469 Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Tue, 23 Aug 2022 21:23:56 -0700 Subject: [PATCH] multi-account: update sendPairs to take keyscope pointer --- rpc/legacyrpc/methods.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/legacyrpc/methods.go b/rpc/legacyrpc/methods.go index da4caa1..5861453 100644 --- a/rpc/legacyrpc/methods.go +++ b/rpc/legacyrpc/methods.go @@ -1535,7 +1535,7 @@ func makeOutputs(pairs map[string]btcutil.Amount, chainParams *chaincfg.Params) // It returns the transaction hash in string format upon success // All errors are returned in btcjson.RPCError format func sendPairs(w *wallet.Wallet, amounts map[string]btcutil.Amount, - keyScope waddrmgr.KeyScope, account uint32, minconf int32, + keyScope *waddrmgr.KeyScope, account uint32, minconf int32, feeSatPerKb btcutil.Amount) (string, error) { outputs, err := makeOutputs(amounts, w.ChainParams()) @@ -1543,7 +1543,7 @@ func sendPairs(w *wallet.Wallet, amounts map[string]btcutil.Amount, return "", err } tx, err := w.SendOutputs( - outputs, &keyScope, account, minconf, feeSatPerKb, + outputs, keyScope, account, minconf, feeSatPerKb, wallet.CoinSelectionLargest, "", ) if err != nil {