aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobtoht <tob@featherwallet.org>2023-11-02 15:16:52 +0100
committertobtoht <tob@featherwallet.org>2023-11-02 15:19:05 +0100
commit1062b172b69cc535bb6217f465babcf00bd3c235 (patch)
treef35410eac5b0f8cb487152c76843d3338e825395
parentMerge pull request #9013 (diff)
downloadmonero-1062b172b69cc535bb6217f465babcf00bd3c235.tar.xz
wallet: sign_tx: get tx pubkey from extra
-rw-r--r--src/wallet/wallet2.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 2c85e2b9c..ddca6256d 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -7287,9 +7287,7 @@ bool wallet2::sign_tx(unsigned_tx_set &exported_txs, std::vector<wallet2::pendin
crypto::key_derivation derivation;
std::vector<crypto::key_derivation> additional_derivations;
- // compute public keys from out secret keys
- crypto::public_key tx_pub_key;
- crypto::secret_key_to_public_key(txs[n].tx_key, tx_pub_key);
+ crypto::public_key tx_pub_key = get_tx_pub_key_from_extra(tx);
std::vector<crypto::public_key> additional_tx_pub_keys;
for (const crypto::secret_key &skey: txs[n].additional_tx_keys)
{