aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-01-18 17:56:55 -0500
committerluigi1111 <luigi1111w@gmail.com>2024-01-18 17:56:55 -0500
commit2a6f7efca60f01385f9a3122af24e54452a1c574 (patch)
tree0f2fddf2ae00a87169bb3a092148221ea2119cbb /src/wallet
parentMerge pull request #9023 (diff)
parentwallet: sign_tx: get tx pubkey from extra (diff)
downloadmonero-2a6f7efca60f01385f9a3122af24e54452a1c574.tar.xz
Merge pull request #9049
1062b17 wallet: sign_tx: get tx pubkey from extra (tobtoht)
Diffstat (limited to 'src/wallet')
-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 76f62ce96..12e4621bf 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -7304,9 +7304,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)
{