aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpc
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2023-08-09 09:42:04 -0400
committerAndrew Chow <github@achow101.com>2023-09-12 12:14:31 -0400
commitad0c469d98c51931b98b7fd937c6ac3eeaed024e (patch)
treeb775fbf14245282b5d276550d9eda1086c6251a5 /src/wallet/rpc
parent07d3bdf4ebc06825ea24ab6f7c87aef6a22238c6 (diff)
downloadbitcoin-ad0c469d98c51931b98b7fd937c6ac3eeaed024e.tar.xz
wallet: Use CTxDestination in CRecipient rather than scriptPubKey
Diffstat (limited to 'src/wallet/rpc')
-rw-r--r--src/wallet/rpc/spend.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/rpc/spend.cpp b/src/wallet/rpc/spend.cpp
index 0c2be26ddf..a82d560a5a 100644
--- a/src/wallet/rpc/spend.cpp
+++ b/src/wallet/rpc/spend.cpp
@@ -39,7 +39,6 @@ static void ParseRecipients(const UniValue& address_amounts, const UniValue& sub
}
destinations.insert(dest);
- CScript script_pub_key = GetScriptForDestination(dest);
CAmount amount = AmountFromValue(address_amounts[i++]);
bool subtract_fee = false;
@@ -50,7 +49,7 @@ static void ParseRecipients(const UniValue& address_amounts, const UniValue& sub
}
}
- CRecipient recipient = {script_pub_key, amount, subtract_fee};
+ CRecipient recipient = {dest, amount, subtract_fee};
recipients.push_back(recipient);
}
}